CEC-4241 - Add trouble code to DTC search (#356)
This commit is contained in:
@@ -8,12 +8,13 @@ import {
|
||||
const API_ENDPOINT = process.env.REACT_APP_OTA_SERVICE_URL;
|
||||
|
||||
const DTCTimelineAPI = {
|
||||
getDTCData: async (vin, ecu, startDate, endDate,search,token) => {
|
||||
getDTCData: async (vin, ecu, troubleCode, startDate, endDate, search, token) => {
|
||||
const queryParams = {
|
||||
ecu,
|
||||
trouble_code: troubleCode,
|
||||
start_time: startDate,
|
||||
end_time: endDate,
|
||||
decode:true,
|
||||
decode: true,
|
||||
...search,
|
||||
};
|
||||
const url = addQueryParams(`${API_ENDPOINT}/dtcs/${vin}`, queryParams);
|
||||
|
||||
Reference in New Issue
Block a user