diff --git a/package.json b/package.json index 1f766bd18..7091da929 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "coolify", "description": "An open-source & self-hostable Heroku / Netlify alternative.", - "version": "2.9.0", + "version": "2.9.1", "license": "AGPL-3.0", "scripts": { "dev": "docker-compose -f docker-compose-dev.yaml up -d && cross-env NODE_ENV=development & svelte-kit dev --host 0.0.0.0", diff --git a/src/lib/database/gitSources.ts b/src/lib/database/gitSources.ts index a0c0b94ed..bed676988 100644 --- a/src/lib/database/gitSources.ts +++ b/src/lib/database/gitSources.ts @@ -67,16 +67,10 @@ export async function getSource({ return body; } export async function addGitHubSource({ id, teamId, type, name, htmlUrl, apiUrl, organization }) { - await prisma.gitSource.update({ + return await prisma.gitSource.update({ where: { id }, data: { type, name, htmlUrl, apiUrl, organization } }); - return await prisma.githubApp.create({ - data: { - teams: { connect: { id: teamId } }, - gitSource: { connect: { id } } - } - }); } export async function addGitLabSource({ id, diff --git a/src/routes/sources/[id]/_Github.svelte b/src/routes/sources/[id]/_Github.svelte index 6d91f2699..b21640df1 100644 --- a/src/routes/sources/[id]/_Github.svelte +++ b/src/routes/sources/[id]/_Github.svelte @@ -80,7 +80,7 @@