feat: reason is added to the email

This commit is contained in:
Rohit Saluja
2024-03-13 11:30:20 +05:30
parent 35c1b0bcee
commit af6ec5df42
3 changed files with 7 additions and 3 deletions

View File

@ -34,7 +34,7 @@ export const DeleteDocumentDialog = ({ document }: DeleteDocumentDialogProps) =>
const handleDeleteDocument = async () => {
try {
await deleteDocument({ id: document.id, userId: document.userId });
await deleteDocument({ id: document.id, userId: document.userId, reason });
toast({
title: 'Document deleted',
description: 'The Document has been deleted successfully.',