Specify cron target

This commit is contained in:
Ben Grant 2021-06-17 12:18:52 +10:00
parent 58c783d9fc
commit 3bd591e22b
2 changed files with 3 additions and 5 deletions

View file

@ -2,6 +2,8 @@ cron:
- description: "clean up old events"
url: /tasks/cleanup
schedule: every monday 09:00
target: api
- description: "clean up old events without a visited date"
url: /tasks/legacyCleanup
schedule: every tuesday 09:00
target: api

View file

@ -74,11 +74,7 @@ const Settings = () => {
});
// Reset scroll on navigation
useEffect(() => {
document.documentElement.style.scrollBehavior = 'auto';
window.scrollTo(0, 0);
document.documentElement.style.scrollBehavior = 'smooth';
}, [pathname]);
useEffect(() => window.scrollTo(0, 0), [pathname]);
return (
<>