@yolo-croket-dev/core 1.4.45-jun.6 → 1.4.46-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.
@@ -24,7 +24,6 @@ async function AmqpHandler(client, messagePattern, payload) {
24
24
  try {
25
25
  data = await (0, rxjs_1.lastValueFrom)(client.send(messagePattern, payload).pipe());
26
26
  if (data.isError) {
27
- console.log('data 확인하십쇼', data);
28
27
  const status = data.status || 500;
29
28
  const subMessage = data.subMessage;
30
29
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.4.45-jun.6",
3
+ "version": "1.4.46-jun.0",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",
@@ -24,9 +24,15 @@ let ValidationPipe = class ValidationPipe {
24
24
  return value;
25
25
  }
26
26
  const object = (0, class_transformer_1.plainToInstance)(this.dto, value.payload);
27
- const errors = await (0, class_validator_1.validate)(object);
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
+ // }
28
34
  if (errors.length > 0) {
29
- throw new exceptions_1.BadRequest('Validation pipe failed', JSON.stringify(errors));
35
+ throw new exceptions_1.BadRequest('VALIDATION_ERROR', JSON.stringify(errors));
30
36
  }
31
37
  return value;
32
38
  }