cron.schedule('* * * 1 *', function () {//do something })
this is my code for cron job, it supposed to trigger the first day of every month. but it won't be doing anything what I am doing wrong here.
You can check the expression config from the below image.
If you write like this " * * * " it will run for every minute.