pg-mvc-service 2.0.80 → 2.0.82

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.
@@ -481,8 +481,7 @@ class RequestType extends ReqResType_1.default {
481
481
  if (Object.keys(property.item.enums).includes(value.toString()) === false) {
482
482
  this.throwInputError("ENUM_32", keys, value);
483
483
  }
484
- console.log(toEnumValue);
485
- this.setEnum([...keys, i], toEnumValue);
484
+ this.changeBody([...keys, i], toEnumValue);
486
485
  }
487
486
  break;
488
487
  case 'map':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-mvc-service",
3
- "version": "2.0.80",
3
+ "version": "2.0.82",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/n-daira/npm-pack_mvc-service#readme",
6
6
  "bugs": {
@@ -475,7 +475,7 @@ export class RequestType extends ReqResType {
475
475
  case 'enum':
476
476
  case 'enum?':
477
477
  const toEnumValue = [];
478
- for (const value of values) {
478
+ for (const value of values) {
479
479
  switch (property.item.enumType) {
480
480
  case 'number':
481
481
  case 'number?':
@@ -502,8 +502,7 @@ export class RequestType extends ReqResType {
502
502
  if (Object.keys(property.item.enums).includes(value.toString()) === false) {
503
503
  this.throwInputError("ENUM_32", keys, value);
504
504
  }
505
- console.log(toEnumValue);
506
- this.setEnum([...keys, i], toEnumValue);
505
+ this.changeBody([...keys, i], toEnumValue);
507
506
  }
508
507
  break;
509
508
  case 'map':