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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user