mirror of
https://github.com/bitwarden/browser.git
synced 2024-08-25 23:03:07 +02: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