add notification delete route

This commit is contained in:
2025-04-11 12:11:55 +05:30
parent e9bba4bdf5
commit 7b659c0dd3
3 changed files with 43 additions and 0 deletions

View File

@@ -90,6 +90,12 @@ export async function listNotifications(
};
}
export async function deleteNotification(notifId: string, tenantId: string) {
return await notificationModel.deleteOne({
$and: [{ tenantId: tenantId }, { pid: notifId }],
});
}
export async function getUniqueValuesNotification(
field: string,
tenenatId: string