Correctly run sync interval as async

This commit is contained in:
Silvano Cerza 2025-02-12 15:25:58 +01:00
parent 6888899e17
commit 3f06dd4f90

View file

@ -767,7 +767,7 @@ export default class SyncManager {
throw new Error("Sync interval is already running");
}
this.syncIntervalId = window.setInterval(
() => this.sync(),
async () => await this.sync(),
// Sync interval is set in minutes but setInterval expects milliseconds
minutes * 60 * 1000,
);