mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-06 23:46:28 +00:00
update
This commit is contained in:
@@ -64,12 +64,14 @@ cron.schedule('*/1 * * * *', async () => {
|
||||
let uniqueCode = helper.getUniqueCode()
|
||||
// const ivoiceDate = moment().format("YYYY-MM-DD")
|
||||
const ivoiceDate = moment().format("YYYY-MM-DD").add(1, 'days');
|
||||
winston.logger.info(`STARTING SCHEDULER-FB70 GENERATE INVOICE ${ivoiceDate} : ${JSON.stringify(generate)}`);
|
||||
const generate = await _generateInvoice(ivoiceDate, uniqueCode)
|
||||
winston.logger.info(`SCHEDULER-FB70 GENERATE INVOICE ${ivoiceDate} : ${JSON.stringify(generate)}`);
|
||||
winston.logger.info(`END SCHEDULER-FB70 GENERATE INVOICE ${ivoiceDate} : ${JSON.stringify(generate)}`);
|
||||
});
|
||||
|
||||
cron.schedule('*/2 * * * *', async () => {
|
||||
let uniqueCode = helper.getUniqueCode()
|
||||
winston.logger.info(`STARTING SCHEDULER-FB70 POSTING INVOICE : ${JSON.stringify(posting)}`);
|
||||
const posting = await _postingInvoice(uniqueCode)
|
||||
winston.logger.info(`SCHEDULER-FB70 POSTING INVOICE : ${JSON.stringify(posting)}`);
|
||||
winston.logger.info(`END SCHEDULER-FB70 POSTING INVOICE : ${JSON.stringify(posting)}`);
|
||||
});
|
||||
Reference in New Issue
Block a user