@yolo-croket-dev/core 1.7.5-slowquery.1 → 1.7.5-slowquery.2

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.
@@ -279,8 +279,14 @@ let RPCInterceptor = class RPCInterceptor {
279
279
  // eslint-disable-next-line consistent-return
280
280
  return next
281
281
  .handle()
282
- .pipe((0, operators_1.timeout)(1000 * 30), // 30분 타임아웃
283
- (0, operators_1.catchError)(localErrorProcessor), (0, operators_1.tap)({
282
+ .pipe((0, operators_1.timeout)(1000 * 10), // 30분 타임아웃
283
+ (0, operators_1.catchError)((err, caught) => {
284
+ console.log('on catchError err: ', err.name, err.message);
285
+ const channel = rmq.getChannelRef();
286
+ const message = rmq.getMessage();
287
+ channel.nack(message, false, false);
288
+ return caught;
289
+ }), (0, operators_1.tap)({
284
290
  next: async (val) => {
285
291
  val.isError = false;
286
292
  // const duration = Date.now() - now;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.7.5-slowquery.1",
3
+ "version": "1.7.5-slowquery.2",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",