fix: passando get params mesmo no patch e puth
This commit is contained in:
parent
f4fe302733
commit
85e0dd6e6a
1 changed files with 4 additions and 2 deletions
|
@ -189,20 +189,22 @@ export class LhispOauthClient<iAccessToken extends AccessToken = AccessToken> {
|
|||
});
|
||||
}
|
||||
|
||||
async put<ResponseType>({ path, data, contentType = ContentType.APPLICATION_JSON }: ExecutarRequestParams) {
|
||||
async put<ResponseType>({ path, data, params, contentType = ContentType.APPLICATION_JSON }: ExecutarRequestParams) {
|
||||
return this.executarRequest<ResponseType>({
|
||||
method: "PUT",
|
||||
path,
|
||||
data,
|
||||
params,
|
||||
contentType,
|
||||
});
|
||||
}
|
||||
|
||||
async patch<ResponseType>({ path, data, contentType = ContentType.APPLICATION_JSON }: ExecutarRequestParams) {
|
||||
async patch<ResponseType>({ path, data, params, contentType = ContentType.APPLICATION_JSON }: ExecutarRequestParams) {
|
||||
return this.executarRequest<ResponseType>({
|
||||
method: "PATCH",
|
||||
path,
|
||||
data,
|
||||
params,
|
||||
contentType,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue