@yolo-croket-dev/core 1.4.45 → 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.
|
@@ -146,6 +146,7 @@ let RPCInterceptor = class RPCInterceptor {
|
|
|
146
146
|
const errType = err.errType;
|
|
147
147
|
const errMessage = err.errMessage;
|
|
148
148
|
const errAction = err.errAction;
|
|
149
|
+
const errInfo = err.errInfo;
|
|
149
150
|
const duration = Date.now() - now;
|
|
150
151
|
let isAck = false;
|
|
151
152
|
/** 파일 객체 처리 */
|
|
@@ -159,6 +160,7 @@ let RPCInterceptor = class RPCInterceptor {
|
|
|
159
160
|
arg,
|
|
160
161
|
timestamp: new Date(),
|
|
161
162
|
// new
|
|
163
|
+
errInfo,
|
|
162
164
|
errType,
|
|
163
165
|
errMessage,
|
|
164
166
|
errAction,
|
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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('
|
|
35
|
+
throw new exceptions_1.BadRequest('VALIDATION_ERROR', JSON.stringify(errors));
|
|
30
36
|
}
|
|
31
37
|
return value;
|
|
32
38
|
}
|