diff --git a/apps/api/src/app/cache/cache.controller.ts b/apps/api/src/app/cache/cache.controller.ts index cd8a1e62b..4d8aac5d3 100644 --- a/apps/api/src/app/cache/cache.controller.ts +++ b/apps/api/src/app/cache/cache.controller.ts @@ -1,4 +1,3 @@ -import { CacheService } from '@ghostfolio/api/app/cache/cache.service'; import { RedisCacheService } from '@ghostfolio/api/app/redis-cache/redis-cache.service'; import { hasPermission, permissions } from '@ghostfolio/common/permissions'; import type { RequestWithUser } from '@ghostfolio/common/types'; @@ -16,7 +15,6 @@ import { StatusCodes, getReasonPhrase } from 'http-status-codes'; @Controller('cache') export class CacheController { public constructor( - private readonly cacheService: CacheService, private readonly redisCacheService: RedisCacheService, @Inject(REQUEST) private readonly request: RequestWithUser ) {} diff --git a/apps/api/src/app/cache/cache.module.ts b/apps/api/src/app/cache/cache.module.ts index 7b427b7a0..c079c7942 100644 --- a/apps/api/src/app/cache/cache.module.ts +++ b/apps/api/src/app/cache/cache.module.ts @@ -1,4 +1,3 @@ -import { CacheService } from '@ghostfolio/api/app/cache/cache.service'; import { RedisCacheModule } from '@ghostfolio/api/app/redis-cache/redis-cache.module'; import { ConfigurationModule } from '@ghostfolio/api/services/configuration.module'; import { DataGatheringModule } from '@ghostfolio/api/services/data-gathering.module'; @@ -11,7 +10,6 @@ import { Module } from '@nestjs/common'; import { CacheController } from './cache.controller'; @Module({ - exports: [CacheService], controllers: [CacheController], imports: [ ConfigurationModule, @@ -21,7 +19,6 @@ import { CacheController } from './cache.controller'; PrismaModule, RedisCacheModule, SymbolProfileModule - ], - providers: [CacheService] + ] }) export class CacheModule {} diff --git a/apps/api/src/app/cache/cache.service.ts b/apps/api/src/app/cache/cache.service.ts deleted file mode 100644 index b907e14c3..000000000 --- a/apps/api/src/app/cache/cache.service.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Injectable } from '@nestjs/common'; - -@Injectable() -export class CacheService { - public constructor() {} -}