mirror of
https://github.com/silvanocerza/github-gitless-sync.git
synced 2026-07-22 12:10:28 +00:00
Correctly run sync interval as async
This commit is contained in:
parent
6888899e17
commit
3f06dd4f90
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue