Skip to content

Commit c2c3f0f

Browse files
committed
Fix LiteREST queries
Update how values are passed into `executeTransaction` so LiteREST calls succeed
1 parent 26a89c3 commit c2c3f0f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/literest/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,12 @@ export class LiteREST {
164164
private async executeOperation(
165165
queries: { sql: string; params: any[] }[]
166166
): Promise<{ result?: any; error?: string | undefined; status: number }> {
167-
const results: any[] = (await executeTransaction(
168-
queries,
169-
false,
170-
this.dataSource,
171-
this.config
172-
)) as any[];
167+
const results: any[] = (await executeTransaction({
168+
queries,
169+
isRaw: false,
170+
dataSource: this.dataSource,
171+
config: this.config
172+
})) as any[];
173173
return {
174174
result: results?.length > 0 ? results[0] : undefined,
175175
status: 200,

0 commit comments

Comments
 (0)