Do not order notifcations by check/unchecked

This commit is contained in:
Johannes Zellner
2026-01-23 12:30:07 +01:00
parent 8521a47cfa
commit 70a9a66ae9

View File

@@ -131,7 +131,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 acknowledged ASC, creationTime DESC LIMIT ?,?';
query += ' ORDER BY creationTime DESC LIMIT ?,?';
args.push((page-1)*perPage);
args.push(perPage);