1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

Fix mistake and clarify api method name (#347)

This commit is contained in:
Matt Gibson
2021-04-20 14:59:51 -05:00
committed by GitHub
parent 372e139810
commit a5ccca05da
3 changed files with 5 additions and 5 deletions

View File

@@ -443,8 +443,8 @@ export class ApiService implements ApiServiceAbstraction {
return new SendFileUploadDataResponse(r);
}
async renewFileUploadUrl(sendId: string, fileId: string): Promise<SendFileUploadDataResponse> {
const r = await this.send('GET', '/sends/' + sendId + '/file/' + fileId + '/renew', null, true, true);
async renewSendFileUploadUrl(sendId: string, fileId: string): Promise<SendFileUploadDataResponse> {
const r = await this.send('GET', '/sends/' + sendId + '/file/' + fileId, null, true, true);
return new SendFileUploadDataResponse(r);
}
@@ -650,7 +650,7 @@ export class ApiService implements ApiServiceAbstraction {
}
async renewAttachmentUploadUrl(id: string, attachmentId: string): Promise<AttachmentUploadDataResponse> {
const r = await this.send('GET', '/ciphers/' + id + '/attachment/' + attachmentId, null, true, true);
const r = await this.send('GET', '/ciphers/' + id + '/attachment/' + attachmentId + '/renew', null, true, true);
return new AttachmentUploadDataResponse(r);
}