mirror of
https://github.com/dotFionn/iassure-wx.git
synced 2026-03-20 22:12:57 -05:00
Merge pull request #3 from MorpheusXAUT/fix-cronjob-syntax
Fix cronjob syntax for data regeneration
This commit is contained in:
@@ -32,7 +32,7 @@ app.use((err, req: Request, res: Response, next: NextFunction) => {
|
||||
res.status(500).json({ msg: 'an error occurred' });
|
||||
});
|
||||
|
||||
nodesched.scheduleJob('regenerate data', '*/30 * * * * *', wxService.wrappedGenerateData);
|
||||
nodesched.scheduleJob('regenerate data', '*/30 * * * *', wxService.wrappedGenerateData);
|
||||
wxService.wrappedGenerateData();
|
||||
|
||||
const server = app.listen(config.port, () => {
|
||||
|
||||
Reference in New Issue
Block a user