diff --git a/src/common/client/client.ts b/src/common/client/client.ts index 256f7b3..514470c 100644 --- a/src/common/client/client.ts +++ b/src/common/client/client.ts @@ -121,10 +121,6 @@ export class Client { const response = await this.client.request(config); this.responseLoggingFunction(ctx, response); - if (response.status === 204) { - return {}; - } - const data = response.data; this.checkErrors(data); return data; diff --git a/src/server.ts b/src/server.ts index ae8e53f..dd5eee4 100644 --- a/src/server.ts +++ b/src/server.ts @@ -149,7 +149,7 @@ async function main() { return { content: [{ type: "text", - text: JSON.stringify(resp.data) + text: JSON.stringify(resp) }], isError: false }; @@ -169,7 +169,7 @@ async function main() { return { content: [{ type: "text", - text: JSON.stringify(resp.data) + text: JSON.stringify(resp) }], isError: false };