Fix cronjob syntax for data regeneration

pull/3/head
Nick 'MorpheusXAUT' Müller 2 years ago
parent 872becfb3a
commit 86e2d092f7
No known key found for this signature in database

@ -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