committed
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user