Skip to content

Commit e0930c5

Browse files
committed
fix : delete store exception
1 parent c963739 commit e0930c5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/controller-cache.interceptor.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
StreamableFile,
1010
} from "@nestjs/common";
1111
import { Observable, of, tap } from "rxjs";
12-
import { CACHE_OPTIONS, CACHE_STORE } from "./constant";
12+
import { CACHE_OPTIONS } from "./constant";
1313
import { CacheOptions } from "./interfaces";
1414
import { isNil } from "@nestjs/common/utils/shared.utils";
1515
import { HttpAdapterHost, Reflector } from "@nestjs/core";
@@ -43,11 +43,6 @@ export class ControllerCacheInterceptor implements NestInterceptor {
4343
if (!options) {
4444
return next.handle();
4545
}
46-
const cacheStore: string = this.reflector.get(CACHE_STORE, context.getHandler());
47-
48-
if (!cacheStore || cacheStore !== this.cache.store?.name) {
49-
return next.handle();
50-
}
5146

5247
const { ttl = Infinity, key: customKey, validate = Boolean, logger = () => null } = options;
5348

0 commit comments

Comments
 (0)