1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +00:00

send text details

This commit is contained in:
jaasen-livefront
2024-09-11 13:54:51 -07:00
parent 3a0ec5c41b
commit df4dc00aba
9 changed files with 54 additions and 50 deletions

View File

@@ -1,5 +1,3 @@
import { SendId } from "@bitwarden/common/types/guid";
import { ApiService } from "../../../abstractions/api.service";
import { ErrorResponse } from "../../../models/response/error.response";
import { ListResponse } from "../../../models/response/list.response";
@@ -137,13 +135,11 @@ export class SendApiService implements SendApiServiceAbstraction {
return this.apiService.send("DELETE", "/sends/" + id, null, true, false);
}
async save(sendData: [Send, EncArrayBuffer]): Promise<Send> {
async save(sendData: [Send, EncArrayBuffer]): Promise<void> {
const response = await this.upload(sendData);
const data = new SendData(response);
const updated = await this.sendService.upsert(data);
// No local data for new Sends
return new Send(updated[response.id as SendId]);
await this.sendService.upsert(data);
}
async delete(id: string): Promise<any> {