deletion reason and email for soft deleted forum posts and comments by admin
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user