Skip to content

Commit

Permalink
fix: added bull module config on issuance module (#261)
Browse files Browse the repository at this point in the history
* fix: file details API issue

Signed-off-by: tipusinghaw <tipu.singh@ayanworks.com>

* added logger to test issuance

Signed-off-by: tipusinghaw <tipu.singh@ayanworks.com>

* added logger to test issuance

Signed-off-by: tipusinghaw <tipu.singh@ayanworks.com>

* fix: added bull module config in issuance service

Signed-off-by: tipusinghaw <tipu.singh@ayanworks.com>

---------

Signed-off-by: tipusinghaw <tipu.singh@ayanworks.com>
  • Loading branch information
tipusinghaw authored Nov 15, 2023
1 parent eb78b69 commit 7a0b073
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions apps/api-gateway/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ import { BullModule } from '@nestjs/bull';
host: process.env.REDIS_HOST,
port: parseInt(process.env.REDIS_PORT)
}
}),
BullModule.registerQueue({
name: 'bulk-issuance',
redis: {
port: parseInt(process.env.REDIS_PORT)
}
})
],
controllers: [AppController],
Expand Down
11 changes: 10 additions & 1 deletion apps/issuance/src/issuance.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,17 @@ import { AwsService } from '@credebl/aws';
]),
CommonModule,
CacheModule.register({ store: redisStore, host: process.env.REDIS_HOST, port: process.env.REDIS_PORT }),
BullModule.forRoot({
redis: {
host: process.env.REDIS_HOST,
port: parseInt(process.env.REDIS_PORT)
}
}),
BullModule.registerQueue({
name: 'bulk-issuance'
name: 'bulk-issuance',
redis: {
port: parseInt(process.env.REDIS_PORT)
}
})
],
controllers: [IssuanceController],
Expand Down

0 comments on commit 7a0b073

Please sign in to comment.