We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d1fc997 + c719611 commit 54e9c0aCopy full SHA for 54e9c0a
packages/common/cache/interceptors/cache.interceptor.ts
@@ -37,8 +37,7 @@ export class CacheInterceptor implements NestInterceptor {
37
next: CallHandler,
38
): Promise<Observable<any>> {
39
const key = this.trackBy(context);
40
- const ttlValueOrFactory =
41
- this.reflector.get(CACHE_TTL_METADATA, context.getHandler()) || null;
+ const ttlValueOrFactory = this.reflector.get(CACHE_TTL_METADATA, context.getHandler()) ?? null;
42
43
if (!key) {
44
return next.handle();
0 commit comments