diff --git a/data_providers/vin01.js b/data_providers/vin01.js index 9838552..9177627 100644 --- a/data_providers/vin01.js +++ b/data_providers/vin01.js @@ -1,4 +1,3 @@ -import AbortController from 'abort-controller'; import DebugInfo from '../models/DebugInfo.js'; import Vehicle from '../models/vehicle.js'; import Utils from '../utils/utils.js'; @@ -20,15 +19,16 @@ class Vin01Provider { } static async runCheck(type, vin, token) { - let result = await fetchWithTimeout(reportBaseUrl, { + let result = await fetch(reportBaseUrl, { method: 'POST', body: new URLSearchParams({ typeCheckValue: type, vinValue: vin, key: token, token: null - }) - }, 25000); + }), + signal: AbortSignal.timeout(14000) + }); console.log('Vin01 response for: ', type); return await result.json(); }