@yolo-croket-dev/core 1.4.47-jun.8 → 1.4.47-jun.9

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,9 +17,9 @@ exports.HttpExceptionCustom = HttpExceptionCustom;
17
17
  // eslint-disable-next-line max-len
18
18
  async function AmqpHandler(client, messagePattern, payload) {
19
19
  var _a, _b;
20
- let data;
20
+ let data = await (0, rxjs_1.lastValueFrom)(client.send(messagePattern, payload).pipe());
21
21
  try {
22
- data = await (0, rxjs_1.lastValueFrom)(client.send(messagePattern, payload).pipe());
22
+ // data = await lastValueFrom(client.send(messagePattern, payload).pipe());
23
23
  if (data.isError) {
24
24
  const status = data.status || 500;
25
25
  const subMessage = data.subMessage;
@@ -46,6 +46,7 @@ async function AmqpHandler(client, messagePattern, payload) {
46
46
  catch (err) {
47
47
  console.error('payload @@@', payload);
48
48
  console.error('err @@@', err);
49
+ console.error('data @@@', data);
49
50
  if (err === 'There is no matching message handler defined in the remote service.') {
50
51
  // throw new BadRequest('NOT_EXISTS_SERVICE', 'There is no matching message handler defined in the remote service');
51
52
  throw new Error('test');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.4.47-jun.8",
3
+ "version": "1.4.47-jun.9",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",