1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-26 17:43:22 +00:00

Address PR feedback

This commit is contained in:
Nik Gilmore
2026-01-21 17:47:03 -08:00
parent cc2b39fc0c
commit 4c4c52487e
3 changed files with 53 additions and 100 deletions

View File

@@ -146,17 +146,13 @@ export class BulkDeleteDialogComponent {
}
private async deleteCiphersAdmin(ciphers: string[]): Promise<any> {
const userId = await firstValueFrom(this.accountService.activeAccount$.pipe(getUserId));
if (this.permanent) {
await this.cipherService.deleteManyWithServer(
ciphers,
await firstValueFrom(this.accountService.activeAccount$.pipe(getUserId)),
true,
this.organization.id,
);
await this.cipherService.deleteManyWithServer(ciphers, userId, true, this.organization.id);
} else {
await this.cipherService.softDeleteManyWithServer(
ciphers,
await firstValueFrom(this.accountService.activeAccount$.pipe(getUserId)),
userId,
true,
this.organization.id,
);