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.
- package/dist/flow/CrudFlow.d.ts +1 -1
- package/package.json +1 -1
- package/src/flow/CrudFlow.ts +1 -1
package/dist/flow/CrudFlow.d.ts
CHANGED
|
@@ -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:
|
|
18
|
+
sumBy(fieldToSum: any, fieldToGroup: any, addToSet: any): Promise<any>;
|
|
19
19
|
}
|
|
20
20
|
export default CrudFlow;
|
package/package.json
CHANGED
package/src/flow/CrudFlow.ts
CHANGED
|
@@ -65,7 +65,7 @@ class CrudFlow<D> {
|
|
|
65
65
|
return data as D
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
public async sumBy(fieldToSum:
|
|
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
|
}
|