Browse Source

Clean up

pull/991/head
Thomas 3 years ago
parent
commit
8c8df502ba
  1. 2
      apps/api/src/app/cache/cache.controller.ts
  2. 5
      apps/api/src/app/cache/cache.module.ts
  3. 6
      apps/api/src/app/cache/cache.service.ts

2
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
) {}

5
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 {}

6
apps/api/src/app/cache/cache.service.ts

@ -1,6 +0,0 @@
import { Injectable } from '@nestjs/common';
@Injectable()
export class CacheService {
public constructor() {}
}
Loading…
Cancel
Save