diff --git a/backend/src/app.ts b/backend/src/app.ts index 82184db..548e873 100644 --- a/backend/src/app.ts +++ b/backend/src/app.ts @@ -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, () => {