fix: passando get params mesmo no post
This commit is contained in:
parent
0ac399073e
commit
f4fe302733
1 changed files with 2 additions and 1 deletions
|
@ -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>({
|
return this.executarRequest<ResponseType>({
|
||||||
method: "POST",
|
method: "POST",
|
||||||
path,
|
path,
|
||||||
data,
|
data,
|
||||||
|
params,
|
||||||
contentType,
|
contentType,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue