fixed parsing admin setup

This commit is contained in:
2025-10-09 01:16:26 +02:00
parent 6052a600dd
commit 6e64343d62
7 changed files with 3084 additions and 203 deletions

View File

@@ -32,11 +32,11 @@ class Database {
});
}
async run(sql: string, params: any[] = []): Promise<void> {
async run(sql: string, params: any[] = []): Promise<{ lastID?: number }> {
return new Promise((resolve, reject) => {
this.db.run(sql, params, (err) => {
this.db.run(sql, params, function(err) {
if (err) reject(err);
else resolve();
else resolve({ lastID: this.lastID });
});
});
}