mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
delete cipher on sync if it 404s
This commit is contained in:
@@ -177,7 +177,13 @@ export class SyncService implements SyncServiceAbstraction {
|
|||||||
return this.syncCompleted(true);
|
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);
|
return this.syncCompleted(false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user