mirror of
https://github.com/dotFionn/iassure-wx.git
synced 2026-03-21 06:22:56 -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' });
|
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, () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user