Specify cron target
This commit is contained in:
parent
58c783d9fc
commit
3bd591e22b
|
|
@ -2,6 +2,8 @@ cron:
|
||||||
- description: "clean up old events"
|
- description: "clean up old events"
|
||||||
url: /tasks/cleanup
|
url: /tasks/cleanup
|
||||||
schedule: every monday 09:00
|
schedule: every monday 09:00
|
||||||
|
target: api
|
||||||
- description: "clean up old events without a visited date"
|
- description: "clean up old events without a visited date"
|
||||||
url: /tasks/legacyCleanup
|
url: /tasks/legacyCleanup
|
||||||
schedule: every tuesday 09:00
|
schedule: every tuesday 09:00
|
||||||
|
target: api
|
||||||
|
|
|
||||||
|
|
@ -74,11 +74,7 @@ const Settings = () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Reset scroll on navigation
|
// Reset scroll on navigation
|
||||||
useEffect(() => {
|
useEffect(() => window.scrollTo(0, 0), [pathname]);
|
||||||
document.documentElement.style.scrollBehavior = 'auto';
|
|
||||||
window.scrollTo(0, 0);
|
|
||||||
document.documentElement.style.scrollBehavior = 'smooth';
|
|
||||||
}, [pathname]);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue