@yolo-croket-dev/core 1.4.45-jun.5 → 1.4.45
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
|
/**
|
|
@@ -32,14 +31,14 @@ async function AmqpHandler(client, messagePattern, payload) {
|
|
|
32
31
|
* 다른 서비스에서 이미 처리가 될 수 있음
|
|
33
32
|
* */
|
|
34
33
|
(0, _1.reWriteFileValue)((_a = data === null || data === void 0 ? void 0 : data.arg) === null || _a === void 0 ? void 0 : _a.file);
|
|
35
|
-
const errInfo = {
|
|
34
|
+
const errInfo = data.errInfo ? data.errInfo : {
|
|
36
35
|
message: data.errMessage,
|
|
37
36
|
type: data.errType,
|
|
38
37
|
action: data.errAction,
|
|
39
38
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
delete data.errType;
|
|
40
|
+
delete data.errMessage;
|
|
41
|
+
delete data.errAction;
|
|
43
42
|
delete data.isError;
|
|
44
43
|
delete data.status;
|
|
45
44
|
delete data.arg;
|
package/interfaces/amqp.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ErrAction } from './exception';
|
|
2
|
-
import { AbstractRequest } from '.';
|
|
2
|
+
import { AbstractRequest, ErrInfo } from '.';
|
|
3
3
|
export interface AbstractAmqpHandlerData {
|
|
4
4
|
isError?: boolean;
|
|
5
5
|
subMessage?: string | null;
|
|
@@ -9,6 +9,7 @@ export interface AbstractAmqpHandlerData {
|
|
|
9
9
|
message: string;
|
|
10
10
|
duration: number;
|
|
11
11
|
timestamp: Date;
|
|
12
|
+
errInfo?: ErrInfo;
|
|
12
13
|
errType?: string;
|
|
13
14
|
errMessage?: string;
|
|
14
15
|
errAction?: ErrAction;
|