interface/api: fix s3 calls for setting endpoint, keys

This commit is contained in:
Matilde Park 2020-08-26 20:29:56 -04:00
parent 84a832d6e7
commit b540ad5c4e

View File

@ -18,15 +18,15 @@ export default class S3Api extends BaseApi<StoreState> {
}
setEndpoint(endpoint: string) {
this.s3Action({ setEndpoint: endpoint });
this.s3Action({ 'set-endpoint': endpoint });
}
setAccessKeyId(accessKeyId: string) {
this.s3Action({ setAccessKeyId: accessKeyId });
this.s3Action({ 'set-access-key-id': accessKeyId });
}
setSecretAccessKey(secretAccessKey: string) {
this.s3Action({ setSecretAccessKey: secretAccessKey });
this.s3Action({ 'set-secret-access-key': secretAccessKey });
}
private s3Action(data: any) {