Merge remote-tracking branch 'origin/master' into ntfy-bearer-authorization

This commit is contained in:
Louis Lam
2023-04-25 18:07:52 +08:00
6 changed files with 15470 additions and 868 deletions

View File

@@ -417,6 +417,9 @@ class Database {
log.info("db", "Closing the database");
// Flush WAL to main database
await R.exec("PRAGMA wal_checkpoint(TRUNCATE)");
while (true) {
Database.noReject = true;
await R.close();