Skip to content

Commit

Permalink
Fix wrong async execute function on modular select
Browse files Browse the repository at this point in the history
  • Loading branch information
G4brym committed Sep 10, 2024
1 parent d401efe commit e7b9ef8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "workers-qb",
"version": "1.6.0",
"version": "1.6.1",
"description": "Zero dependencies Query Builder for Cloudflare Workers",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion src/modularBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class SelectBuilder<GenericResultWrapper, GenericResult = DefaultReturnOb
return this._fetchOne(this._options as SelectAll)
}

async execute(): Promise<ArrayResult<GenericResultWrapper, GenericResult>> {
execute(): MaybeAsync<IsAsync, ArrayResult<GenericResultWrapper, GenericResult>> {
return this._fetchAll(this._options as SelectAll).execute()
}

Expand Down

0 comments on commit e7b9ef8

Please sign in to comment.