@nestledjs/api 0.0.20 → 0.0.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestledjs/api",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "generators": "./generators.json",
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
@@ -150,7 +150,9 @@ export class ApiCrudDataAccessService {
150
150
  }
151
151
 
152
152
  async <%= (model.pluralModelName === model.modelName ? model.pluralModelName + 'List' : model.pluralModelName).charAt(0).toLowerCase() + (model.pluralModelName === model.modelName ? model.pluralModelName + 'List' : model.pluralModelName).slice(1) %>Count(input?: dto.List<%= model.modelName %>Input) {
153
- const total = await this.data['<%= model.modelPropertyName %>'].count()
153
+ const total = await this.data['<%= model.modelPropertyName %>'].count({
154
+ ...this.data.filter(input)
155
+ });
154
156
  const count = await this.data['<%= model.modelPropertyName %>'].count({
155
157
  ...this.data.filter(input)
156
158
  });