Skip to content

Commit

Permalink
fix: wrap query results for sqlite driver as well
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Sep 23, 2019
1 parent 9bc3bf1 commit 290ec66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Database/Traits/Executable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ export class Executable implements ExcutableQueryBuilderContract<any> {
|| this.client.isTransaction
|| this.$knexBuilder['client'].transacting
) {
return this._executeQuery()
const result = await this._executeQuery()
return typeof (this.wrapQueryResults) === 'function' ? this.wrapQueryResults(result) : result
}

/**
Expand Down

0 comments on commit 290ec66

Please sign in to comment.