Browse Source

fix(api): update Redis client type definition

pull/7648/head
KenTandrian 1 day ago
parent
commit
c25034f1aa
  1. 3
      apps/api/src/app/redis-cache/redis-cache.service.ts

3
apps/api/src/app/redis-cache/redis-cache.service.ts

@ -4,7 +4,6 @@ import { AssetProfileIdentifier, Filter } from '@ghostfolio/common/interfaces';
import { CACHE_MANAGER, Cache } from '@nestjs/cache-manager'; import { CACHE_MANAGER, Cache } from '@nestjs/cache-manager';
import { Inject, Injectable, Logger } from '@nestjs/common'; import { Inject, Injectable, Logger } from '@nestjs/common';
import Keyv from 'keyv';
import ms from 'ms'; import ms from 'ms';
import { createHash, randomUUID } from 'node:crypto'; import { createHash, randomUUID } from 'node:crypto';
@ -12,7 +11,7 @@ import { createHash, randomUUID } from 'node:crypto';
export class RedisCacheService { export class RedisCacheService {
private readonly logger = new Logger(RedisCacheService.name); private readonly logger = new Logger(RedisCacheService.name);
private client: Keyv; private client: Cache["stores"][0];
public constructor( public constructor(
@Inject(CACHE_MANAGER) private readonly cache: Cache, @Inject(CACHE_MANAGER) private readonly cache: Cache,

Loading…
Cancel
Save