Skip to content

Commit

Permalink
fix(knex): Add Error Handler to knex _update function (#3371)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesvillarrubia committed Jan 5, 2024
1 parent 094056a commit 210f103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/knex/src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ export class KnexAdapter<
return result
}, {})

await this.db(params).update(newObject, '*', { includeTriggerModifications: true }).where(this.id, id)
await this.db(params).update(newObject, '*', { includeTriggerModifications: true }).where(this.id, id).catch(errorHandler)

return this._get(id, params)
}
Expand Down

0 comments on commit 210f103

Please sign in to comment.