server-ts: Port consistency_checks

This commit is contained in:
Elian Doran
2024-04-03 20:47:41 +03:00
parent ed47c23e23
commit aa233b8adb
7 changed files with 111 additions and 49 deletions

View File

@@ -179,7 +179,7 @@ dbReady.then(() => {
});
function getDbSize() {
return sql.getValue("SELECT page_count * page_size / 1000 as size FROM pragma_page_count(), pragma_page_size()");
return sql.getValue<number>("SELECT page_count * page_size / 1000 as size FROM pragma_page_count(), pragma_page_size()");
}
log.info(`DB size: ${getDbSize()} KB`);