@azteam/express 1.2.353 → 1.2.354

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.
@@ -310,7 +310,7 @@ var AdminController = /*#__PURE__*/function (_Controller) {
310
310
  };
311
311
  _this.guardResponse = options.guardResponse || [];
312
312
  _this.allowResponse = options.allowResponse ? [].concat(_toConsumableArray(options.allowResponse), ALLOW_FIELDS) : ALLOW_FIELDS;
313
- if (options.isMetadata) {
313
+ if (options.indexing) {
314
314
  _this.paginateOptions.allowSearchFields = [].concat(_toConsumableArray(_this.paginateOptions.allowSearchFields), ['is_indexing']);
315
315
  }
316
316
  _this.paginateOptions.allowSearchFields = [].concat(_toConsumableArray(_this.paginateOptions.allowSearchFields), ['status', 'created_at_start', 'created_at_end', 'modified_at_start', 'modified_at_end']);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/express",
3
- "version": "1.2.353",
3
+ "version": "1.2.354",
4
4
  "license": "MIT",
5
5
  "author": "toda <sp.azsolution.net@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -48,11 +48,8 @@ class AdminController extends Controller {
48
48
  this.guardResponse = options.guardResponse || [];
49
49
  this.allowResponse = options.allowResponse ? [...options.allowResponse, ...ALLOW_FIELDS] : ALLOW_FIELDS;
50
50
 
51
- if (options.isMetadata) {
52
- this.paginateOptions.allowSearchFields = [
53
- ...this.paginateOptions.allowSearchFields,
54
- 'is_indexing'
55
- ]
51
+ if (options.indexing) {
52
+ this.paginateOptions.allowSearchFields = [...this.paginateOptions.allowSearchFields, 'is_indexing'];
56
53
  }
57
54
 
58
55
  this.paginateOptions.allowSearchFields = [