chore(marketplace): 🔧 Restructure domain events module to isolate marketplace-specific events in features/marketplace/backend-api/package/
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
1d12cdeae6
commit
85fe59b546
2 changed files with 4 additions and 2 deletions
|
|
@ -53,6 +53,7 @@ export class DomainEventsModule {
|
|||
*/
|
||||
static forRoot(options?: DomainEventsModuleOptions): DynamicModule {
|
||||
const redisConfig = options?.redis ?? {}
|
||||
const password = redisConfig.password ?? process.env.REDIS_PASSWORD
|
||||
|
||||
return {
|
||||
module: DomainEventsModule,
|
||||
|
|
@ -61,7 +62,7 @@ export class DomainEventsModule {
|
|||
connection: {
|
||||
host: redisConfig.host ?? process.env.REDIS_HOST ?? 'localhost',
|
||||
port: redisConfig.port ?? parseInt(process.env.REDIS_PORT ?? '26379', 10),
|
||||
password: redisConfig.password ?? process.env.REDIS_PASSWORD,
|
||||
...(password && { password }),
|
||||
},
|
||||
}),
|
||||
BullModule.registerQueue({
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ export class DomainEventsModule {
|
|||
*/
|
||||
static forRoot(options?: DomainEventsModuleOptions): DynamicModule {
|
||||
const redisConfig = options?.redis ?? {}
|
||||
const password = redisConfig.password ?? process.env.REDIS_PASSWORD
|
||||
|
||||
return {
|
||||
module: DomainEventsModule,
|
||||
|
|
@ -61,7 +62,7 @@ export class DomainEventsModule {
|
|||
connection: {
|
||||
host: redisConfig.host ?? process.env.REDIS_HOST ?? 'localhost',
|
||||
port: redisConfig.port ?? parseInt(process.env.REDIS_PORT ?? '26379', 10),
|
||||
password: redisConfig.password ?? process.env.REDIS_PASSWORD,
|
||||
...(password && { password }),
|
||||
},
|
||||
}),
|
||||
BullModule.registerQueue({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue