fix: passando get params mesmo no delete

This commit is contained in:
Leandro Costa 2023-11-10 09:02:36 -03:00
parent 85e0dd6e6a
commit c2feb1c8e1

View file

@ -219,10 +219,11 @@ export class LhispOauthClient<iAccessToken extends AccessToken = AccessToken> {
}); });
} }
async delete<ResponseType>({ path, contentType = ContentType.APPLICATION_JSON }: ExecutarRequestParams) { async delete<ResponseType>({ path, params, contentType = ContentType.APPLICATION_JSON }: ExecutarRequestParams) {
return this.executarRequest<ResponseType>({ return this.executarRequest<ResponseType>({
method: "DELETE", method: "DELETE",
path, path,
params,
contentType, contentType,
}); });
} }