@rws-framework/db 3.5.0 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -207,7 +207,7 @@ class DBService {
207
207
  return this;
208
208
  }
209
209
  async count(opModel, where = {}) {
210
- return await this.getCollectionHandler(opModel._collection).count(where);
210
+ return await this.getCollectionHandler(opModel._collection).count({ where });
211
211
  }
212
212
  }
213
213
  exports.DBService = DBService;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rws-framework/db",
3
3
  "private": false,
4
- "version": "3.5.0",
4
+ "version": "3.5.1",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -290,7 +290,7 @@ class DBService {
290
290
  }
291
291
 
292
292
  public async count<T = any>(opModel: OpModelType<T>, where: {[k: string]: any} = {}): Promise<number>{
293
- return await this.getCollectionHandler(opModel._collection).count(where);
293
+ return await this.getCollectionHandler(opModel._collection).count({where});
294
294
  }
295
295
  }
296
296