fix: passando get params mesmo no post

This commit is contained in:
Leandro Costa 2023-11-10 09:01:57 -03:00
parent 0ac399073e
commit f4fe302733

View file

@ -207,11 +207,12 @@ export class LhispOauthClient<iAccessToken extends AccessToken = AccessToken> {
});
}
async post<ResponseType>({ path, data, contentType = ContentType.APPLICATION_JSON }: ExecutarRequestParams) {
async post<ResponseType>({ path, data, params, contentType = ContentType.APPLICATION_JSON }: ExecutarRequestParams) {
return this.executarRequest<ResponseType>({
method: "POST",
path,
data,
params,
contentType,
});
}