From 44feba4d89ab61972feb2e954a753028f58c44d4 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 3 Nov 2022 08:14:57 +0100 Subject: [PATCH] fix branches --- apps/api/src/routes/api/v1/applications/handlers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/routes/api/v1/applications/handlers.ts b/apps/api/src/routes/api/v1/applications/handlers.ts index 1c854fbae..e166951a9 100644 --- a/apps/api/src/routes/api/v1/applications/handlers.ts +++ b/apps/api/src/routes/api/v1/applications/handlers.ts @@ -819,7 +819,7 @@ export async function saveRepository(request, reply) { let { repository, branch, projectId, autodeploy, webhookToken, isPublicRepository = false } = request.body repository = repository.toLowerCase(); - branch = branch.toLowerCase(); + projectId = Number(projectId); if (webhookToken) { await prisma.application.update({