mirror of
https://github.com/bitwarden/browser
synced 2025-01-01 12:47:57 +01:00
delete cipher on sync if it 404s
This commit is contained in:
parent
686597ab53
commit
46e35a9b84
@ -177,7 +177,13 @@ export class SyncService implements SyncServiceAbstraction {
|
||||
return this.syncCompleted(true);
|
||||
}
|
||||
}
|
||||
} catch { }
|
||||
} catch (e) {
|
||||
if (e != null && e.statusCode === 404 && isEdit) {
|
||||
await this.cipherService.delete(notification.id);
|
||||
this.messagingService.send('syncedDeletedCipher', { cipherId: notification.id });
|
||||
return this.syncCompleted(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
return this.syncCompleted(false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user