chore: implenet the external invoice

This commit is contained in:
mahyargdz
2025-07-14 10:24:58 +03:30
parent 5fe82bb661
commit 11b8164c28
13 changed files with 241 additions and 30 deletions
+9 -1
View File
@@ -27,7 +27,15 @@ import { WalletsModule } from "../wallets/wallets.module";
name: INVOICE.QUEUE_NAME,
defaultJobOptions: {
removeOnComplete: true,
removeOnFail: true,
removeOnFail: false,
},
}),
BullModule.registerQueue({
name: INVOICE.EXTERNAL_QUEUE_NAME,
prefix: INVOICE.EXTERNAL_INVOICE_JOB_NAME,
defaultJobOptions: {
removeOnComplete: true,
removeOnFail: false,
},
}),
TypeOrmModule.forFeature([Invoice, InvoiceItem, Discount, UsageDiscount]),