CEC-4241 - Add trouble code to DTC search (#356)

This commit is contained in:
Paul Adamsen
2023-06-13 15:54:04 -04:00
committed by GitHub
parent 99e2058ffd
commit a68c00b4ad
4 changed files with 59 additions and 6 deletions

View File

@@ -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);