Skip to content

Commit 8958a49

Browse files
committed
clean up code
1 parent 339d003 commit 8958a49

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

src/api/submission/submission.service.ts

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2313,46 +2313,6 @@ export class SubmissionService {
23132313
await this.prisma.aiWorkflowRun.deleteMany({
23142314
where: { submissionId: id },
23152315
});
2316-
2317-
// await this.prisma.$transaction(async (tx) => {
2318-
// for (const run of runs) {
2319-
// const runId = run.id;
2320-
2321-
// const items = await tx.aiWorkflowRunItem.findMany({
2322-
// where: { workflowRunId: runId },
2323-
// select: { id: true },
2324-
// });
2325-
2326-
// const itemIds = items.map((i) => i.id);
2327-
2328-
// const comments = await tx.aiWorkflowRunItemComment.findMany({
2329-
// where: { workflowRunItemId: { in: itemIds } },
2330-
// select: { id: true },
2331-
// });
2332-
2333-
// const commentIds = comments.map((c) => c.id);
2334-
2335-
// await tx.aiWorkflowRunItemVote.deleteMany({
2336-
// where: { workflowRunItemId: { in: itemIds } },
2337-
// });
2338-
2339-
// await tx.aiWorkflowRunItemCommentVote.deleteMany({
2340-
// where: { workflowRunItemCommentId: { in: commentIds } },
2341-
// });
2342-
2343-
// await tx.aiWorkflowRunItemComment.deleteMany({
2344-
// where: { workflowRunItemId: { in: itemIds } },
2345-
// });
2346-
2347-
// await tx.aiWorkflowRunItem.deleteMany({
2348-
// where: { workflowRunId: runId },
2349-
// });
2350-
2351-
// await tx.aiWorkflowRun.deleteMany({
2352-
// where: { id: runId },
2353-
// });
2354-
// }
2355-
// });
23562316
}
23572317

23582318
await this.prisma.submission.delete({

0 commit comments

Comments
 (0)