@autofleet/sheilta 1.0.5-aaron-test → 1.0.6-aaron-test

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.
@@ -70,7 +70,6 @@ const validateIncludePayload = (include, associations) => {
70
70
  const associationsKeys = Object.keys(associations);
71
71
  include.forEach((i) => {
72
72
  var _a;
73
- console.log('i', i);
74
73
  validateQueryAttribute(i.model, associationsKeys);
75
74
  const target = (_a = associations[i.model]) === null || _a === void 0 ? void 0 : _a.target;
76
75
  if (!target) {
@@ -89,8 +88,8 @@ const validateIncludePayload = (include, associations) => {
89
88
  if (!lodash_1.default.isNil(include.required) && !lodash_1.default.isBoolean(include.required)) {
90
89
  utils_1.throwBadRequestError('include.required must be a boolean');
91
90
  }
92
- console.log('loopend');
93
91
  });
92
+ console.log('loopend');
94
93
  };
95
94
  exports.validatePayload = ({ query = {}, order = [], attributes = [], include = [], page = utils_1.PAGE_DEFAULT, perPage = utils_1.PER_PAGE_DEFAULT, }, model) => {
96
95
  const rawAttributes = Object.keys(model.rawAttributes);
@@ -110,6 +109,7 @@ exports.validatePayload = ({ query = {}, order = [], attributes = [], include =
110
109
  else if (include && typeof include !== 'object') {
111
110
  utils_1.throwBadRequestError('include must be an array');
112
111
  }
112
+ console.log('validatePagination');
113
113
  validatePagination({
114
114
  page,
115
115
  perPage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/sheilta",
3
- "version": "1.0.5-aaron-test",
3
+ "version": "1.0.6-aaron-test",
4
4
  "description": "manage cache",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",