1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 23:03:32 +00:00

send created redirect

This commit is contained in:
jaasen-livefront
2024-09-17 16:30:58 -07:00
parent a151f40e3b
commit 36711d54a3
5 changed files with 33 additions and 15 deletions

View File

@@ -135,11 +135,12 @@ export class SendApiService implements SendApiServiceAbstraction {
return this.apiService.send("DELETE", "/sends/" + id, null, true, false);
}
async save(sendData: [Send, EncArrayBuffer]): Promise<any> {
async save(sendData: [Send, EncArrayBuffer]): Promise<SendData> {
const response = await this.upload(sendData);
const data = new SendData(response);
await this.sendService.upsert(data);
return data;
}
async delete(id: string): Promise<any> {