fix: soft delete labels

This commit is contained in:
Henry
2025-05-27 21:49:01 +01:00
parent 09211e60c7
commit 59eadfc694
8 changed files with 2131 additions and 5 deletions

View File

@@ -192,7 +192,11 @@ export const labelRouter = createTRPCRouter({
await cardRepo.hardDeleteAllCardLabelRelationships(ctx.db, label.id);
await labelRepo.hardDelete(ctx.db, label.id);
await labelRepo.softDelete(ctx.db, {
labelId: label.id,
deletedAt: new Date(),
deletedBy: userId,
});
return { success: true };
}),