mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 14:53:33 +00:00
send text details
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user