From 1ae52a1ea174adfffadb1b7ce024847f01b9dcb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Berg=C3=A9?= Date: Mon, 6 Jan 2025 13:45:41 +0100 Subject: [PATCH] fix(project): fix project deletion Fix ARGOS-SERVER-XRF --- apps/backend/src/graphql/services/project.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/backend/src/graphql/services/project.ts b/apps/backend/src/graphql/services/project.ts index 418062fe..5afdc9a8 100644 --- a/apps/backend/src/graphql/services/project.ts +++ b/apps/backend/src/graphql/services/project.ts @@ -5,6 +5,7 @@ import { Build, BuildNotification, BuildReview, + BuildShard, Project, Screenshot, ScreenshotBucket, @@ -71,6 +72,10 @@ export async function unsafe_deleteProject(args: { .joinRelated("build") .where("build.projectId", args.projectId) .delete(); + await BuildShard.query(trx) + .joinRelated("build") + .where("build.projectId", args.projectId) + .delete(); await Build.query(trx).where("projectId", args.projectId).delete(); await ScreenshotBucket.query(trx) .where("projectId", args.projectId)