I have run: meteor add percolate:synced-cron
after I add to my server/main.ts
SyncedCron.add({
name: ‘Crunch some important numbers for the marketing department’,
schedule: function(parser) {
// parser is a later.parse object
return parser.text(‘every 0.5 minutes’);
},
job: function() {
return 1;
}
});
SyncedCron.start();
when i start the server, it is saying “Cannot find name ‘SyncedCron’”
I have tried to import “synced-cron” with this line, also doesn’t work. My meteor version Meteor 1.4.2.3
Can anyone please help? Thanks