1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

save share response

This commit is contained in:
Kyle Spearrin
2018-10-23 16:16:59 -04:00
parent 2f510a7988
commit 43c0cbce45
3 changed files with 7 additions and 5 deletions

View File

@@ -374,8 +374,9 @@ export class ApiService implements ApiServiceAbstraction {
return this.send('PUT', '/ciphers/move', request, true, false);
}
putShareCipher(id: string, request: CipherShareRequest): Promise<any> {
return this.send('PUT', '/ciphers/' + id + '/share', request, true, false);
async putShareCipher(id: string, request: CipherShareRequest): Promise<CipherResponse> {
const r = await this.send('PUT', '/ciphers/' + id + '/share', request, true, true);
return new CipherResponse(r);
}
putShareCiphers(request: CipherBulkShareRequest): Promise<any> {