chore: complete payment service but not tested
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { SharedBullAsyncConfiguration } from "@nestjs/bullmq";
|
||||
import { ConfigService } from "@nestjs/config";
|
||||
|
||||
export function bullMqConfig(): SharedBullAsyncConfiguration {
|
||||
return {
|
||||
inject: [ConfigService],
|
||||
useFactory: async (configService: ConfigService) => ({
|
||||
connection: {
|
||||
url: configService.getOrThrow<string>("REDIS_URI"),
|
||||
},
|
||||
defaultJobOptions: {
|
||||
removeOnComplete: 1000,
|
||||
removeOnFail: 5000,
|
||||
attempts: 3,
|
||||
},
|
||||
}),
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user