fix: node.js sdk if request is a get data must not exist (#4618)

This commit is contained in:
Valerio Narcisi 2024-05-27 02:48:07 +02:00 • committed by GitHub
commit af026c5953
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View file

@ -85,7 +85,7 @@ export class DifyClient {
response = await axios({
method,
url,
data,
...(method !== "GET" && { data }),
params,
headers,
responseType: "json",