deletion reason and email for soft deleted forum posts and comments by admin

This commit is contained in:
jackiettran
2025-11-20 18:08:30 -05:00
parent b2f18d77f6
commit f7767dfd13
10 changed files with 911 additions and 21 deletions

View File

@@ -483,7 +483,8 @@ router.patch("/admin/:id/restore", authenticateToken, requireAdmin, async (req,
await item.update({
isDeleted: false,
deletedBy: null,
deletedAt: null
deletedAt: null,
deletionReason: null
});
const updatedItem = await Item.findByPk(item.id, {