@yolo-croket-dev/core 1.4.47-jun.5 → 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.
@@ -4,6 +4,7 @@ exports.AmqpHandler = exports.HttpExceptionCustom = void 0;
4
4
  const common_1 = require("@nestjs/common");
5
5
  const rxjs_1 = require("rxjs");
6
6
  const msa_logger_1 = require("@yolo-croket-dev/msa-logger");
7
+ const __1 = require("..");
7
8
  const _1 = require(".");
8
9
  const msaLogger = new msa_logger_1.MsaLogger(msa_logger_1.ServerTypeEnum.SERVICE);
9
10
  class HttpExceptionCustom extends common_1.HttpException {
@@ -16,7 +17,7 @@ class HttpExceptionCustom extends common_1.HttpException {
16
17
  exports.HttpExceptionCustom = HttpExceptionCustom;
17
18
  // eslint-disable-next-line max-len
18
19
  async function AmqpHandler(client, messagePattern, payload) {
19
- var _a;
20
+ var _a, _b;
20
21
  let data;
21
22
  try {
22
23
  data = await (0, rxjs_1.lastValueFrom)(client.send(messagePattern, payload).pipe());
@@ -46,12 +47,11 @@ async function AmqpHandler(client, messagePattern, payload) {
46
47
  catch (err) {
47
48
  console.error('payload @@@', payload);
48
49
  if (err === 'There is no matching message handler defined in the remote service') {
49
- // throw new BadRequest('NOT_EXISTS_SERVICE', 'There is no matching message handler defined in the remote service');
50
- throw err;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.4.47-jun.5",
3
+ "version": "1.4.47-jun.6",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",