From 67fc2fd3c02ed8a44919280e920140179b19e3e1 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 7 Sep 2022 15:29:56 +0000 Subject: [PATCH] fix: pr previews --- apps/api/src/lib/common.ts | 2 +- .../src/routes/webhooks/github/handlers.ts | 20 +++++++++---------- package.json | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/apps/api/src/lib/common.ts b/apps/api/src/lib/common.ts index cba901255..f644780a3 100644 --- a/apps/api/src/lib/common.ts +++ b/apps/api/src/lib/common.ts @@ -21,7 +21,7 @@ import { scheduler } from './scheduler'; import { supportedServiceTypesAndVersions } from './services/supportedVersions'; import { includeServices } from './services/common'; -export const version = '3.9.2'; +export const version = '3.9.3'; export const isDev = process.env.NODE_ENV === 'development'; const algorithm = 'aes-256-ctr'; diff --git a/apps/api/src/routes/webhooks/github/handlers.ts b/apps/api/src/routes/webhooks/github/handlers.ts index de288022d..ba15c1d60 100644 --- a/apps/api/src/routes/webhooks/github/handlers.ts +++ b/apps/api/src/routes/webhooks/github/handlers.ts @@ -173,16 +173,16 @@ export async function gitHubEvents(request: FastifyRequest): Promi where: { id: application.id }, data: { updatedAt: new Date() } }); - if (application.connectedDatabase && pullmergeRequestAction === 'opened' || pullmergeRequestAction === 'reopened') { - // Coolify hosted database - if (application.connectedDatabase.databaseId) { - const databaseId = application.connectedDatabase.databaseId; - const database = await prisma.database.findUnique({ where: { id: databaseId } }); - if (database) { - await createdBranchDatabase(database, application.connectedDatabase.hostedDatabaseDBName, pullmergeRequestId); - } - } - } + // if (application.connectedDatabase && pullmergeRequestAction === 'opened' || pullmergeRequestAction === 'reopened') { + // // Coolify hosted database + // if (application.connectedDatabase.databaseId) { + // const databaseId = application.connectedDatabase.databaseId; + // const database = await prisma.database.findUnique({ where: { id: databaseId } }); + // if (database) { + // await createdBranchDatabase(database, application.connectedDatabase.hostedDatabaseDBName, pullmergeRequestId); + // } + // } + // } await prisma.build.create({ data: { id: buildId, diff --git a/package.json b/package.json index d3e4c5004..e005b8a9d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "coolify", "description": "An open-source & self-hostable Heroku / Netlify alternative.", - "version": "3.9.2", + "version": "3.9.3", "license": "Apache-2.0", "repository": "github:coollabsio/coolify", "scripts": {