1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-12 22:57:38 +02:00

All: Fix database upgrade

This commit is contained in:
Laurent Cozic
2018-03-16 14:32:47 +00:00
parent 86a0e34975
commit ae9ecdad40
8 changed files with 43 additions and 26 deletions

View File

@ -454,11 +454,7 @@ async function initialize(dispatch) {
AlarmService.garbageCollect();
}, 1000 * 60 * 60);
const resourceService = new ResourceService();
resourceService.maintenance();
PoorManIntervals.setInterval(() => {
resourceService.maintenance();
}, 1000 * 60 * 60 * 4);
ResourceService.runInBackground();
reg.scheduleSync().then(() => {
// Wait for the first sync before updating the notifications, since synchronisation