From 22475f8dfeae77b2fd3909538fd9eff8afd0ef2f Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sat, 18 Nov 2023 15:48:00 +0800 Subject: [PATCH] Fix binding type --- lib/redbean-node.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/redbean-node.ts b/lib/redbean-node.ts index 9bbc2ca..11f01e8 100644 --- a/lib/redbean-node.ts +++ b/lib/redbean-node.ts @@ -717,7 +717,7 @@ export class RedBeanNode { return list; } - async exec(sql: string, data: string[] = []) { + async exec(sql: string, data: RawBinding[] = []) { await this.normalizeRaw(sql, data); } @@ -725,7 +725,7 @@ export class RedBeanNode { return this.normalizeRaw(sql, data); } - getAllStream(sql: string, data: string[] = []) { + getAllStream(sql: string, data: RawBinding[] = []) { return this.normalizeRawCore(sql, data).stream(); } @@ -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;