diff --git a/src/driver/sqljs/SqljsQueryRunner.ts b/src/driver/sqljs/SqljsQueryRunner.ts index fdc8982bbf..51a38ea0dc 100644 --- a/src/driver/sqljs/SqljsQueryRunner.ts +++ b/src/driver/sqljs/SqljsQueryRunner.ts @@ -41,7 +41,7 @@ export class SqljsQueryRunner extends AbstractSqliteQueryRunner { /** * Executes a given SQL query. */ - query(query: string, parameters?: any[]): Promise { + query(query: string, parameters: any[] = []): Promise { if (this.isReleased) throw new QueryRunnerAlreadyReleasedError();