@yolo-croket-dev/core 1.4.46-jun.0 → 1.4.47-jun.0

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.
@@ -47,6 +47,7 @@ async function AmqpHandler(client, messagePattern, payload) {
47
47
  }
48
48
  }
49
49
  catch (err) {
50
+ console.error('err @@@', err);
50
51
  logger.error(err);
51
52
  throw err;
52
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.4.46-jun.0",
3
+ "version": "1.4.47-jun.0",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",
@@ -24,13 +24,7 @@ let ValidationPipe = class ValidationPipe {
24
24
  return value;
25
25
  }
26
26
  const object = (0, class_transformer_1.plainToInstance)(this.dto, value.payload);
27
- let errors = await (0, class_validator_1.validate)(object);
28
- console.log('errors @@@', errors);
29
- // for (let i = 0; i < 10; i += 1) {
30
- // if (errors.children && errors.children.length > 0) {
31
- // errors = errors.children[0];
32
- // } else break;
33
- // }
27
+ const errors = await (0, class_validator_1.validate)(object);
34
28
  if (errors.length > 0) {
35
29
  throw new exceptions_1.BadRequest('VALIDATION_ERROR', JSON.stringify(errors));
36
30
  }