start Start the service with scheduled cron job()

in middleware/cron/syncTransactionHistory.js [284:304]


  start       Start the service with scheduled cron job (default)
  run-once    Run the sync once without scheduling a cron job
  status      Show the current sync status
  help        Show this help message

Options:
  --schedule=<cron>    Custom cron schedule (default: "0 * * * *")
                       Example: --schedule="*/30 * * * *" for every 30 minutes

Examples:
  node syncTransactionHistory.js start
  node syncTransactionHistory.js run-once
  node syncTransactionHistory.js start --schedule="0 */2 * * *"
  node syncTransactionHistory.js status
    `);
}

/**
 * Check and display the current sync status
 */
async function showStatus() {