Fix 2FA dialog not opening & notifications table

This commit is contained in:
Natsumi
2024-10-11 16:06:16 +13:00
parent d45a2607e7
commit e0f7d54ab5
2 changed files with 12 additions and 1 deletions

View File

@@ -800,7 +800,7 @@ class Database {
row.$isExpired = true;
}
notifications.unshift(row);
}, `SELECT * FROM ${Database.userPrefix}_notifications ORDER BY id DESC LIMIT ${Database.maxTableSize}`);
}, `SELECT * FROM ${Database.userPrefix}_notifications ORDER BY created_at DESC LIMIT ${Database.maxTableSize}`);
return notifications;
}