mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
parent
f3e5b360c4
commit
f24c962785
1 changed files with 18 additions and 14 deletions
|
@ -55,6 +55,7 @@ export class Postgres implements IDatabase {
|
|||
|
||||
Logger.debug(`prepare (postgres): type: ${type}, query: ${query}, params: ${params}`);
|
||||
|
||||
try {
|
||||
const queryResult = await this.pool.query({text: query, values: params});
|
||||
|
||||
switch (type) {
|
||||
|
@ -72,6 +73,9 @@ export class Postgres implements IDatabase {
|
|||
break;
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
Logger.error(`prepare (postgres): ${err}`);
|
||||
}
|
||||
}
|
||||
|
||||
private async createDB() {
|
||||
|
|
Loading…
Reference in a new issue