mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
[PM-22344] - update response type for shareManyWithServer (#15061)
* update response type for shareManyWithServer * build new ListResponse
This commit is contained in:
@@ -852,7 +852,7 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
const request = new CipherBulkShareRequest(encCiphers, collectionIds, userId);
|
||||
try {
|
||||
const response = await this.apiService.putShareCiphers(request);
|
||||
const responseMap = new Map(response.map((c) => [c.id, c]));
|
||||
const responseMap = new Map(response.data.map((r) => [r.id, r]));
|
||||
|
||||
encCiphers.forEach((cipher) => {
|
||||
const matchingCipher = responseMap.get(cipher.id);
|
||||
|
||||
Reference in New Issue
Block a user