From 1789383df9183a5f50bf646c297e8eb8f698e9a1 Mon Sep 17 00:00:00 2001 From: fratzinger <22286818+fratzinger@users.noreply.github.com> Date: Wed, 28 Feb 2024 08:56:25 +0100 Subject: [PATCH] fix: explicit NullableId check against null, not just truethy --- src/adapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapter.ts b/src/adapter.ts index a026230..5c7da9e 100644 --- a/src/adapter.ts +++ b/src/adapter.ts @@ -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