1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +00:00

[Soft Delete] soft-delete by default

This commit is contained in:
Chad Scharf
2020-04-14 14:32:43 -04:00
parent 49f1fac3ed
commit 5dd9963618
3 changed files with 9 additions and 8 deletions

View File

@@ -39,10 +39,10 @@ export class DeleteCommand {
}
try {
if (cmd.trash) {
await this.cipherService.softDeleteWithServer(id);
} else {
if (cmd.permanent) {
await this.cipherService.deleteWithServer(id);
} else {
await this.cipherService.softDeleteWithServer(id);
}
return Response.success();
} catch (e) {