Skip to content

Commit

Permalink
Fix binding type
Browse files Browse the repository at this point in the history
  • Loading branch information
louislam committed Nov 18, 2023
1 parent 0d64c60 commit 22475f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/redbean-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -717,15 +717,15 @@ export class RedBeanNode {
return list;
}

async exec(sql: string, data: string[] = []) {
async exec(sql: string, data: RawBinding[] = []) {
await this.normalizeRaw(sql, data);
}

getAll(sql: string, data: readonly RawBinding[] = []) {
return this.normalizeRaw(sql, data);
}

getAllStream(sql: string, data: string[] = []) {
getAllStream(sql: string, data: RawBinding[] = []) {
return this.normalizeRawCore(sql, data).stream();
}

Expand Down Expand Up @@ -803,7 +803,7 @@ export class RedBeanNode {
}
}

async getAssoc(sql: string, data: string[] = []) {
async getAssoc(sql: string, data: RawBinding[] = []) {
let list = await this.getAll(sql, data);
let keyKey : string;
let valueKey : string;
Expand Down

0 comments on commit 22475f8

Please sign in to comment.