diff --git a/src/index.ts b/src/index.ts index f9f82b2..ef242c0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -229,10 +229,10 @@ class OttomanService extends AdapterService implements InternalServi ...restQuery, $and: [ { - id, + [this.id]: id, }, { - id: query[this.id], + [this.id]: query[this.id], }, ], }; @@ -240,7 +240,7 @@ class OttomanService extends AdapterService implements InternalServi return { ...query, - id, + [this.id]: id, }; }