From 86e2d092f77c31c3e9e17e9d350a917e89b70776 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nick=20=27MorpheusXAUT=27=20M=C3=BCller?= Date: Wed, 5 Jul 2023 16:38:59 +0200 Subject: [PATCH] Fix cronjob syntax for data regeneration --- backend/src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, () => {