diff --git a/routes/api/v0/chainlink.ts b/routes/api/v0/chainlink.ts index 31fc30c..ce731e7 100644 --- a/routes/api/v0/chainlink.ts +++ b/routes/api/v0/chainlink.ts @@ -52,8 +52,10 @@ router.post("/", async (req: any, res: any, next: any) => { const scVehicle = new smartcar.Vehicle(vehicleId, accessToken); const odometer = await scVehicle.odometer(); const location = await scVehicle.location(); + const fuel = await scVehicle.fuel(); + const battery = await scVehicle.battery(); - res.json({ jobRunID, data: { ...odometer, ...location } }); + res.json({ jobRunID, data: { ...odometer, ...location, ...fuel, ...battery } }); } catch (err) { next(err); }