Skip to content

Commit

Permalink
fix: explicit NullableId check against null, not just truethy
Browse files Browse the repository at this point in the history
  • Loading branch information
fratzinger committed Feb 28, 2024
1 parent 645255e commit 1789383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export class SequelizeAdapter<

paramsToAdapter (id: NullableId, _params?: ServiceParams): FindOptions {
const params = _params || {} as ServiceParams;
if (id) {
if (id !== null) {
let { query: where } = this.filterQuery(params);

// explicitly set id
Expand Down

0 comments on commit 1789383

Please sign in to comment.