notifications: send unacked ones first
This commit is contained in:
@@ -129,7 +129,7 @@ async function list(filters, page, perPage) {
|
||||
|
||||
let query = `SELECT ${NOTIFICATION_FIELDS} FROM notifications`;
|
||||
if (where.length) query += ' WHERE ' + where.join(' AND ');
|
||||
query += ' ORDER BY creationTime DESC LIMIT ?,?';
|
||||
query += ' ORDER BY acknowledged ASC, creationTime DESC LIMIT ?,?';
|
||||
|
||||
args.push((page-1)*perPage);
|
||||
args.push(perPage);
|
||||
|
||||
Reference in New Issue
Block a user