@yolo-croket-dev/core 1.7.25-slowquery.6 → 1.7.25-slowquery.7
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.
- package/interceptors/rpc.interceptor.js +15 -16
- package/package.json +1 -1
|
@@ -349,23 +349,22 @@ let RPCInterceptor = class RPCInterceptor {
|
|
|
349
349
|
// eslint-disable-next-line consistent-return
|
|
350
350
|
return next
|
|
351
351
|
.handle()
|
|
352
|
-
.pipe(
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
//
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
})),
|
|
352
|
+
.pipe((0, operators_1.switchMap)((val) => {
|
|
353
|
+
console.log('switchMap called', val);
|
|
354
|
+
if (abortController === null || abortController === void 0 ? void 0 : abortController.signal.aborted) {
|
|
355
|
+
console.log('RPC Interceptor: Service execution aborted');
|
|
356
|
+
return (0, rxjs_1.throwError)(() => new Error('Service execution aborted'));
|
|
357
|
+
}
|
|
358
|
+
// // AbortController를 컨텍스트에 주입
|
|
359
|
+
// const request = context.switchToRpc().getData();
|
|
360
|
+
// if (request && typeof request === 'object') {
|
|
361
|
+
// (request as any).abortController = abortController;
|
|
362
|
+
// (request as any).abortSignal = abortController?.signal;
|
|
363
|
+
// }
|
|
364
|
+
return (0, rxjs_1.of)(val);
|
|
365
|
+
}),
|
|
367
366
|
// timeout(1000 * 60 * 29), // 30분 타임아웃
|
|
368
|
-
(0, operators_1.timeout)(1000 *
|
|
367
|
+
(0, operators_1.timeout)(1000 * 3), // 30분 타임아웃
|
|
369
368
|
(0, operators_1.tap)({
|
|
370
369
|
next: async (val) => {
|
|
371
370
|
console.log('RPC Interceptor next called');
|