update: add to query to the invoice search for ademin
This commit is contained in:
@@ -62,7 +62,6 @@ export class InvoicesService {
|
||||
const totalPrice = invoiceItems.reduce((sum, item) => new Decimal(item.totalPrice).add(sum), new Decimal(0));
|
||||
const tax = totalPrice.mul(0.1);
|
||||
|
||||
//TODO:for test use minutes
|
||||
const dueDate = dayjs().add(INVOICE.DUEDATE, "day").toDate();
|
||||
|
||||
const invoice = queryRunner.manager.create(Invoice, {
|
||||
@@ -91,7 +90,7 @@ export class InvoicesService {
|
||||
},
|
||||
queryRunner,
|
||||
);
|
||||
|
||||
//TODO:remove the test delay
|
||||
await this.invoiceQueue.add(
|
||||
INVOICE.INVOICE_REMINDER_JOB_NAME,
|
||||
{ invoiceId: invoice.id },
|
||||
|
||||
Reference in New Issue
Block a user