This commit is contained in:
Nuranggi Hermawan
2022-12-07 11:31:51 +07:00
parent 12ad880498
commit ceced77af4
2 changed files with 11 additions and 11 deletions
@@ -468,7 +468,7 @@ const _postingInvoice = async (uniqueCode) => {
winston.logger.info(`SCHEDULER-RETRY-${uniqueCode} ITEM REFERENCE ${item.reference}`);
winston.logger.info(`SCHEDULER-RETRY-${uniqueCode} URL SAP ${parameter.c_value}`);
let invoice = await model.getInvoice(item.reference, trx)
await wait(2000)
await wait(1000)
winston.logger.info(`SCHEDULER-RETRY-${uniqueCode} RETRY INVOICE ${JSON.stringify(invoice)}`);
const cms = await model.setReturnSAP(
invoice,
@@ -477,7 +477,7 @@ const _postingInvoice = async (uniqueCode) => {
false,
item.reference
);
await wait(2000)
await wait(1000)
winston.logger.info(
`SCHEDULER-RETRY-${uniqueCode} RESULT CMS : ${JSON.stringify(cms)}`