fix: soft delete labels
This commit is contained in:
@@ -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 };
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user