sean.zhou
2023-04-27 a6d54064183dc8adb6e8c2f68c20c4a8faf6403b
fix the debugging parameters
1 files modified
5 ■■■■ changed files
src/api/device-cmd/index.ts 5 ●●●● patch | view | raw | blame | history
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
}