@munlib/common 1.0.191 → 1.0.193

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.
@@ -12,8 +12,8 @@ var validateRequest = function (req, res, next) {
12
12
  console.log("VALIDATE REQUEST1111111", errors.array()[0]);
13
13
  // Extraer el primer error y sus detalles personalizados (typeError y userMsg)
14
14
  var msg = errors.array()[0].msg.msg; // Primer error encontrado
15
- var typeMsg = msg.typeMsg || instituciones_pagos_1.ErrorCategories.SINTAX;
16
- var userMsg = msg.userMsg || erroresStatus_1.ErrorController.getErrorMessage(instituciones_pagos_1.ErrorCategories.SINTAX);
15
+ var typeMsg = instituciones_pagos_1.ErrorCategories.SINTAX;
16
+ var userMsg = erroresStatus_1.ErrorController.getErrorMessage(instituciones_pagos_1.ErrorCategories.SINTAX);
17
17
  // Lanzar RequestValidationError con los campos personalizados
18
18
  throw new request_validation_error_1.RequestValidationError(msg, typeMsg, userMsg);
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@munlib/common",
3
- "version": "1.0.191",
3
+ "version": "1.0.193",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",