mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2026-02-02 07:40:43 +03:00
Update tests to use promises
This commit is contained in:
@@ -11,7 +11,7 @@ export class Mysql implements IDatabase {
|
||||
this.pool = new Pool();
|
||||
}
|
||||
|
||||
async prepare(type: QueryType, query: string, params: any[]) {
|
||||
async prepare(type: QueryType, query: string, params?: any[]) {
|
||||
Logger.debug(`prepare (postgres): type: ${type}, query: ${query}, params: ${params}`);
|
||||
const queryResult = await this.pool.query(query, params);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user