revert debug

This commit is contained in:
Andras Bacsai
2022-08-12 19:29:53 +00:00
parent b63e516274
commit 29dc5a8bb4
3 changed files with 3 additions and 8 deletions

View File

@@ -196,9 +196,7 @@ export async function getService(request: FastifyRequest<OnlyId>) {
try {
const teamId = request.user.teamId;
const { id } = request.params;
console.log({id, teamId})
const service = await getServiceFromDB({ id, teamId });
console.log(service)
if (!service) {
throw { status: 404, message: 'Service not found.' }
}
@@ -206,7 +204,6 @@ export async function getService(request: FastifyRequest<OnlyId>) {
service
}
} catch ({ status, message }) {
console.log({status, message})
return errorHandler({ status, message })
}
}