Skip to content

Commit af1dd95

Browse files
committed
fix: _getQuery do not use this.id
Without using `this.id`, if the `id` field is defined as other name than `id`, then the query will fail
1 parent a4de57c commit af1dd95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -229,18 +229,18 @@ class OttomanService<T = any> extends AdapterService<T> implements InternalServi
229229
...restQuery,
230230
$and: [
231231
{
232-
id,
232+
[this.id]: id,
233233
},
234234
{
235-
id: query[this.id],
235+
[this.id]: query[this.id],
236236
},
237237
],
238238
};
239239
}
240240

241241
return {
242242
...query,
243-
id,
243+
[this.id]: id,
244244
};
245245
}
246246

0 commit comments

Comments
 (0)