From a6d54064183dc8adb6e8c2f68c20c4a8faf6403b Mon Sep 17 00:00:00 2001
From: sean.zhou <sean.zhou@dji.com>
Date: Thu, 27 Apr 2023 11:40:23 +0800
Subject: [PATCH] fix the debugging parameters

---
 src/api/device-cmd/index.ts |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/src/api/device-cmd/index.ts b/src/api/device-cmd/index.ts
index 8e48e53..3a4532d 100644
--- a/src/api/device-cmd/index.ts
+++ b/src/api/device-cmd/index.ts
@@ -18,9 +18,6 @@
  */
 // /control/api/v1/devices/{dock_sn}/jobs/{service_identifier}
 export async function postSendCmd (params: SendCmdParams, body?: PostSendCmdBody): Promise<IWorkspaceResponse<{}>> {
-  const postBody = body || {}
-  const resp = await request.post(`${CMD_API_PREFIX}/devices/${params.dock_sn}/jobs/${params.device_cmd}`, {
-    ...postBody
-  })
+  const resp = await request.post(`${CMD_API_PREFIX}/devices/${params.dock_sn}/jobs/${params.device_cmd}`, body)
   return resp.data
 }

--
Gitblit v1.9.3