Fix: Use croner for clear-old-data

This commit is contained in:
Nelson Chan 2023-05-13 00:55:48 +08:00
parent f2c294e9e5
commit a27386bb92
5 changed files with 45 additions and 292 deletions

View file

@ -1557,7 +1557,7 @@ let needSetup = false;
}
});
initBackgroundJobs(args);
await initBackgroundJobs();
// Start cloudflared at the end if configured
await cloudflaredAutoStart(cloudflaredToken);