merge upstream

Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
Zoey
2023-03-18 11:37:05 +01:00
parent 1d9c7b0570
commit 256a068791
24 changed files with 34 additions and 136 deletions

5
backend/sqlite-vaccum.js Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/usr/bin/node
#!/usr/bin/env node
const fs = require('fs');
const sqlite3 = require('sqlite3');
@@ -7,7 +8,7 @@ if (fs.existsSync(process.env.DB_SQLITE_FILE)) {
if (err) {
console.error(err.message);
} else {
db.run('VACUUM;', [], (err) => {
db.run('VACUUM; PRAGMA auto_vacuum = 1;', [], (err) => {
if (err) {
console.error(err.message);
}