Small changes and fixes

This commit is contained in:
Natsumi
2023-11-22 02:07:18 +13:00
parent 29b5bedde1
commit ab8ffbec87
5 changed files with 64 additions and 23 deletions

View File

@@ -2474,8 +2474,8 @@ class Database {
});
}
fixBrokenNotifications() {
sqliteService.executeNonQuery(
async fixBrokenNotifications() {
await sqliteService.executeNonQuery(
`DELETE FROM ${Database.userPrefix}_notifications WHERE (created_at is null or created_at = '')`
);
}
@@ -2513,6 +2513,14 @@ class Database {
}
}
}
async vacuum() {
await sqliteService.executeNonQuery('VACUUM');
}
async setWal() {
await sqliteService.executeNonQuery('PRAGMA journal_mode=WAL');
}
}
var self = new Database();