Merge pull request #3 from MorpheusXAUT/fix-cronjob-syntax

Fix cronjob syntax for data regeneration
develop
Fionn 1 year ago committed by GitHub
commit b89691dcd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -32,7 +32,7 @@ app.use((err, req: Request, res: Response, next: NextFunction) => {
res.status(500).json({ msg: 'an error occurred' }); res.status(500).json({ msg: 'an error occurred' });
}); });
nodesched.scheduleJob('regenerate data', '*/30 * * * * *', wxService.wrappedGenerateData); nodesched.scheduleJob('regenerate data', '*/30 * * * *', wxService.wrappedGenerateData);
wxService.wrappedGenerateData(); wxService.wrappedGenerateData();
const server = app.listen(config.port, () => { const server = app.listen(config.port, () => {

Loading…
Cancel
Save