mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2026-01-02 22:59:10 +03:00
type IDatabase::prepare with overloads
This commit is contained in:
@@ -109,7 +109,7 @@ export class Postgres implements IDatabase {
|
||||
}
|
||||
}
|
||||
|
||||
async prepare(type: QueryType, query: string, params?: any[], options: QueryOption = {}): Promise<any[]> {
|
||||
async prepare(type: QueryType, query: string, params?: any[], options: QueryOption = {}): Promise<any> {
|
||||
// Convert query to use numbered parameters
|
||||
let count = 1;
|
||||
for (let char = 0; char < query.length; char++) {
|
||||
|
||||
Reference in New Issue
Block a user