@yolo-croket-dev/core 1.4.47-jun.3 → 1.4.47-jun.6
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.
|
@@ -17,7 +17,7 @@ class HttpExceptionCustom extends common_1.HttpException {
|
|
|
17
17
|
exports.HttpExceptionCustom = HttpExceptionCustom;
|
|
18
18
|
// eslint-disable-next-line max-len
|
|
19
19
|
async function AmqpHandler(client, messagePattern, payload) {
|
|
20
|
-
var _a;
|
|
20
|
+
var _a, _b;
|
|
21
21
|
let data;
|
|
22
22
|
try {
|
|
23
23
|
data = await (0, rxjs_1.lastValueFrom)(client.send(messagePattern, payload).pipe());
|
|
@@ -45,13 +45,13 @@ async function AmqpHandler(client, messagePattern, payload) {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
catch (err) {
|
|
48
|
-
|
|
48
|
+
console.error('payload @@@', payload);
|
|
49
49
|
if (err === 'There is no matching message handler defined in the remote service') {
|
|
50
50
|
throw new __1.BadRequest('NOT_EXISTS_SERVICE', 'There is no matching message handler defined in the remote service');
|
|
51
51
|
}
|
|
52
52
|
else {
|
|
53
53
|
msaLogger.error('AMQP_HANDLER_ERROR', {
|
|
54
|
-
traceId: ''
|
|
54
|
+
traceId: ((_b = payload === null || payload === void 0 ? void 0 : payload.param) === null || _b === void 0 ? void 0 : _b.traceId) || '-'
|
|
55
55
|
});
|
|
56
56
|
throw err;
|
|
57
57
|
}
|