fix: Do not trigger >1 webhooks on GitLab

This commit is contained in:
Andras Bacsai
2022-04-07 20:37:08 +02:00
parent 61716738ed
commit 3abe1610bf
2 changed files with 9 additions and 11 deletions

View File

@@ -26,7 +26,6 @@ export async function newSource({ name, teamId, type, htmlUrl, apiUrl, organizat
});
}
export async function removeSource({ id }) {
// TODO: Disconnect application with this sourceId! Maybe not needed?
const source = await prisma.gitSource.delete({
where: { id },
include: { githubApp: true, gitlabApp: true }