fix(GODT-2318): Remove gluon DB if label sync was incomplete

This commit is contained in:
James Houlahan
2023-01-31 11:04:19 +01:00
parent 4577a40b1e
commit e382687168
3 changed files with 33 additions and 1 deletions

View File

@ -477,6 +477,11 @@ func (user *User) OnStatusDown(context.Context) {
user.abortable.Abort()
}
// GetSyncStatus returns the sync status of the user.
func (user *User) GetSyncStatus() vault.SyncStatus {
return user.vault.GetSyncStatus()
}
// ClearSyncStatus clears the sync status of the user. This triggers a resync.
func (user *User) ClearSyncStatus() error {
user.abortable.Abort()