mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-17 21:25:54 +02:00
update response message in delete contact api
This commit is contained in:
@@ -26,11 +26,11 @@ export default async function deleteContact(request, response) {
|
||||
deleteQuery.set('IsDeleted', true);
|
||||
const deleteRes = await deleteQuery.save(null, { useMasterKey: true });
|
||||
if (deleteRes) {
|
||||
return response.json({ code: 200, message: 'Record delete successfully!' });
|
||||
return response.json({ code: 200, message: 'Contact deleted successfully!' });
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return response.json({ code: 404, message: 'Record not found!' });
|
||||
return response.json({ code: 404, message: 'Contact not found!' });
|
||||
}
|
||||
} else {
|
||||
return response.json({ code: 405, message: 'Invalid API Token!' });
|
||||
|
||||
Reference in New Issue
Block a user