CEC-4341 - Fix Can signal export select all (#340)

* CEC-4341 - Fix Can signal export select all

* fix code smell
This commit is contained in:
Paul Adamsen
2023-05-23 09:30:08 -04:00
committed by GitHub
parent 2345daf82e
commit a701d4ceec
4 changed files with 21 additions and 14 deletions

View File

@@ -6,8 +6,8 @@ const API_ENDPOINT = process.env.REACT_APP_OTA_SERVICE_URL;
const canSignalAPI = {
getCanSignalsVin: async (vin, timestamp_start, timestamp_end, can_signals, token) =>
fetch(addQueryParams(`${API_ENDPOINT}/can_signals_export`, { vin, timestamp_start, timestamp_end, can_signals }), {
getCanSignalsVin: async (vin, timestamp_start, timestamp_end, can_signals, select_all, token) =>
fetch(addQueryParams(`${API_ENDPOINT}/can_signals_export`, { vin, timestamp_start, timestamp_end, can_signals, select_all }), {
method: "GET",
headers: Object.assign(
{ "Content-Type": "application/json" },
@@ -15,8 +15,7 @@ const canSignalAPI = {
),
responseType: "blob"
})
.catch(errorHandler),
.catch(errorHandler),
getCanSignalList: async (token) =>
fetch(addQueryParams(`${API_ENDPOINT}/can_signals_list`), {