Skip to content

Commit

Permalink
Merge pull request #1519 from argos-ci/fix-delete-project
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge authored Jan 6, 2025
2 parents b56bec3 + 1ae52a1 commit 65255ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/backend/src/graphql/services/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
Build,
BuildNotification,
BuildReview,
BuildShard,
Project,
Screenshot,
ScreenshotBucket,
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 65255ab

Please sign in to comment.