Skip to content

Commit

Permalink
linting, and ordering fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tokdaniel committed Nov 3, 2023
1 parent 056bfc1 commit 140eafa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/backend/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Module } from '@nestjs/common';

import { ConfigModule, ConfigService } from '@nestjs/config';
import { BullModule } from '@nestjs/bullmq';
import { RedisStore, redisStore } from 'cache-manager-redis-store';
import { redisStore } from 'cache-manager-redis-store';
import { CacheInterceptor, CacheModule, CacheStore } from '@nestjs/cache-manager';
import { QueueDashboardModule } from './queue-dashboard/queue-dashboard.module';
import { CheckoutSessionModule } from './checkout-session/checkout-session.module';
Expand Down Expand Up @@ -42,6 +42,7 @@ const registerBullModule = () =>
const registerCacheModule = () =>
CacheModule.registerAsync({
imports: [ConfigModule],
inject: [ConfigService],
useFactory: async (config: ConfigService) => {
const store = await redisStore({
socket: {
Expand All @@ -57,13 +58,12 @@ const registerCacheModule = () =>
ttl: 60 * 60 * 24 * 7,
};
},
inject: [ConfigService],
});

@Module({
imports: [
registerCacheModule(),
registerConfigModule(),
registerCacheModule(),
registerStripeModule(),
registerBullModule(),
QueueDashboardModule,
Expand Down

0 comments on commit 140eafa

Please sign in to comment.