Migrate to fly.io, add Genre type
This commit is contained in:
@@ -37,16 +37,17 @@ import { RedisModule, RedisModuleOptions } from '@liaoliaots/nestjs-redis';
|
||||
RedisModule.forRootAsync({
|
||||
imports: [ConfigModule],
|
||||
inject: [ConfigService],
|
||||
useFactory: async (configService: ConfigService): Promise<RedisModuleOptions> => {
|
||||
useFactory: async (
|
||||
configService: ConfigService,
|
||||
): Promise<RedisModuleOptions> => {
|
||||
return {
|
||||
config: {
|
||||
host: configService.get<string>('redis.host'),
|
||||
port: configService.get<number>('redis.port'),
|
||||
password: configService.get<string>('redis.password'),
|
||||
url: configService.get<string>('redis.url'),
|
||||
db: configService.get<number>('redis.db'),
|
||||
}
|
||||
family: 6,
|
||||
},
|
||||
};
|
||||
}
|
||||
},
|
||||
}),
|
||||
CacheModule.registerAsync<RedisClientOptions>({
|
||||
isGlobal: true,
|
||||
@@ -54,12 +55,9 @@ import { RedisModule, RedisModuleOptions } from '@liaoliaots/nestjs-redis';
|
||||
imports: [ConfigModule],
|
||||
useFactory: async (configService: ConfigService) => ({
|
||||
store: redisStore,
|
||||
socket: {
|
||||
host: configService.get<string>('redis.host'),
|
||||
port: configService.get<number>('redis.port'),
|
||||
},
|
||||
url: configService.get<string>('redis.url'),
|
||||
family: 6,
|
||||
database: configService.get<number>('redis.db'),
|
||||
password: configService.get<string>('redis.password'),
|
||||
}),
|
||||
}),
|
||||
BullModule.forRootAsync({
|
||||
@@ -68,10 +66,9 @@ import { RedisModule, RedisModuleOptions } from '@liaoliaots/nestjs-redis';
|
||||
useFactory: async (configService: ConfigService) => {
|
||||
const config = {
|
||||
redis: {
|
||||
password: configService.get<string>('redis.password'),
|
||||
host: configService.get<string>('redis.host'),
|
||||
port: configService.get<number>('redis.port'),
|
||||
url: configService.get<string>('redis.url'),
|
||||
db: configService.get<number>('redis.db'),
|
||||
family: 6,
|
||||
},
|
||||
};
|
||||
return config;
|
||||
@@ -103,4 +100,4 @@ import { RedisModule, RedisModuleOptions } from '@liaoliaots/nestjs-redis';
|
||||
controllers: [AppController],
|
||||
providers: [AppService],
|
||||
})
|
||||
export class AppModule { }
|
||||
export class AppModule {}
|
||||
|
Reference in New Issue
Block a user