c2-mongoose 2.1.32 → 2.1.33

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.
@@ -15,6 +15,6 @@ declare class CrudFlow<D> {
15
15
  getOne(model: D, params?: any): Promise<D>;
16
16
  get(id: string, pop?: string, sel?: string, session?: ClientSession): Promise<D>;
17
17
  getById(id: string, session?: ClientSession): Promise<Partial<D>>;
18
- sumBy(fieldToSum: string, fieldToGroup: string, addToSet: any): Promise<any>;
18
+ sumBy(fieldToSum: any, fieldToGroup: any, addToSet: any): Promise<any>;
19
19
  }
20
20
  export default CrudFlow;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.32",
3
+ "version": "2.1.33",
4
4
  "description": "Lib to make any search in database mongoose and use as basic crud",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -65,7 +65,7 @@ class CrudFlow<D> {
65
65
  return data as D
66
66
  }
67
67
 
68
- public async sumBy(fieldToSum: string, fieldToGroup: string, addToSet: any): Promise<any> {
68
+ public async sumBy(fieldToSum: any, fieldToGroup: any, addToSet: any): Promise<any> {
69
69
  return await this.search.sumBy(this.repository, fieldToSum, fieldToGroup, addToSet)
70
70
  }
71
71
  }