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 @@