small clean

This commit is contained in:
tiagosiebler
2022-05-08 01:09:04 +01:00
parent 38f5a6286c
commit c94b4d16ff

View File

@@ -157,15 +157,12 @@ export default abstract class BaseRestClient {
}
}
const preparedRequestParams = await this.prepareSignParams(
params,
isPublicApi
);
const signResult = await this.prepareSignParams(params, isPublicApi);
if (method === 'GET') {
options.params = preparedRequestParams.paramsWithSign;
options.params = signResult.paramsWithSign;
} else {
options.data = preparedRequestParams.paramsWithSign;
options.data = signResult.paramsWithSign;
}
return axios(options)