committed

This commit is contained in:
2025-01-10 13:03:41 +05:30
parent 4ba496b8eb
commit 52f746308f
17 changed files with 1689 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
const Notification = require('../models/notification');
async function getUrgentAlerts() {
return Notification.find({
priority: 'high',
status: 'pending'
}).sort({ createdAt: 1 });
}
module.exports = { getUrgentAlerts };