Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: pr previews

Andras Bacsai67fc2fd3c02e
diff --git a/apps/api/src/lib/common.ts b/apps/api/src/lib/common.ts
index cba9012557..f644780a35 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 de288022d9..ba15c1d60b 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<GitHubEvents>): 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 d3e4c5004c..e005b8a9df 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": {