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>({
|
return this.executarRequest<ResponseType>({
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
path,
|
path,
|
||||||
data,
|
data,
|
||||||
|
params,
|
||||||
contentType,
|
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>({
|
return this.executarRequest<ResponseType>({
|
||||||
method: "PATCH",
|
method: "PATCH",
|
||||||
path,
|
path,
|
||||||
data,
|
data,
|
||||||
|
params,
|
||||||
contentType,
|
contentType,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue