remove console logs

This commit is contained in:
Andras Bacsai
2022-07-25 13:03:37 +00:00
parent e77c18eb72
commit 580545bb57
3 changed files with 0 additions and 4 deletions

View File

@@ -177,7 +177,6 @@ export async function getApplicationFromDB(id: string, teamId: string) {
} }
export async function getApplicationFromDBWebhook(projectId: number, branch: string) { export async function getApplicationFromDBWebhook(projectId: number, branch: string) {
try { try {
console.log({ projectId, branch })
let application = await prisma.application.findFirst({ let application = await prisma.application.findFirst({
where: { projectId, branch, settings: { autodeploy: true } }, where: { projectId, branch, settings: { autodeploy: true } },
include: { include: {
@@ -188,7 +187,6 @@ export async function getApplicationFromDBWebhook(projectId: number, branch: str
persistentStorage: true persistentStorage: true
} }
}); });
console.log({ application })
if (!application) { if (!application) {
throw { status: 500, message: 'Application not configured.' } throw { status: 500, message: 'Application not configured.' }
} }

View File

@@ -86,7 +86,6 @@ export async function gitHubEvents(request: FastifyRequest<GitHubEvents>): Promi
projectId = repository.id; projectId = repository.id;
branch = body.pull_request.head.ref.includes('/') ? body.pull_request.head.ref.split('/')[2] : body.pull_request.head.ref; branch = body.pull_request.head.ref.includes('/') ? body.pull_request.head.ref.split('/')[2] : body.pull_request.head.ref;
} }
console.log({repository, projectId, branch})
if (!projectId || !branch) { if (!projectId || !branch) {
throw { status: 500, message: 'Cannot parse projectId or branch from the webhook?!' } throw { status: 500, message: 'Cannot parse projectId or branch from the webhook?!' }
} }

View File

@@ -34,7 +34,6 @@ export async function configureGitLabApp(request: FastifyRequest<ConfigureGitLab
} }
return reply.redirect(`/webhooks/success?token=${data.access_token}`) return reply.redirect(`/webhooks/success?token=${data.access_token}`)
} catch ({ status, message, ...other }) { } catch ({ status, message, ...other }) {
console.log(other)
return errorHandler({ status, message }) return errorHandler({ status, message })
} }
} }