mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-05 10:56:27 +00:00
update
This commit is contained in:
@@ -60,14 +60,14 @@ app.listen(PORT, () => {
|
||||
|
||||
// SCHEDULER FOR GENERATE INVOICE
|
||||
const {_generateInvoice, _postingInvoice } = require("./application/modules/invoice/invoice.controller");
|
||||
cron.schedule('0 1 * * *', async () => {
|
||||
cron.schedule('0 */2 * * *', async () => {
|
||||
let uniqueCode = helper.getUniqueCode
|
||||
const ivoiceDate = moment().format("YYYY-MM-DD")
|
||||
const generate = await _generateInvoice(ivoiceDate, uniqueCode)
|
||||
winston.logger.info(`SCHEDULER-FB70 GENERATE INVOICE : ${JSON.stringify(generate)}`);
|
||||
});
|
||||
|
||||
cron.schedule('*/5 * * * *', async () => {
|
||||
cron.schedule('*/3 * * * *', async () => {
|
||||
let uniqueCode = helper.getUniqueCode
|
||||
const posting = await _postingInvoice(uniqueCode)
|
||||
winston.logger.info(`SCHEDULER-FB70 POSTING INVOICE : ${JSON.stringify(posting)}`);
|
||||
|
||||
Reference in New Issue
Block a user