mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2025-12-01 06:55:45 +01:00
fixed parsing admin setup
This commit is contained in:
@@ -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 });
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user