@tride/grab-handler
Advanced tools
Comparing version 0.4.8 to 0.4.9
11
index.js
@@ -148,2 +148,4 @@ require('dotenv').config() | ||
async rideStatus(rideId) { | ||
@@ -153,8 +155,7 @@ return this.grabBase | ||
.then(async response => { | ||
const { data } = response | ||
const driverData = await this.grabBase.get(`/api/passenger/v3/rides/${rideId}`) | ||
const { driver, vehicle } = driverData.data | ||
const { data: driverData } = await this.grabBase.get(`/api/passenger/v3/rides/${rideId}`) | ||
const { driver, vehicle } = driverData | ||
const driver = { | ||
const driverPayload = { | ||
name: driver.name, | ||
@@ -173,3 +174,3 @@ rating: driver.rating, | ||
requestId: rideId, | ||
driver | ||
driver: driverPayload | ||
} | ||
@@ -176,0 +177,0 @@ |
{ | ||
"name": "@tride/grab-handler", | ||
"version": "0.4.8", | ||
"version": "0.4.9", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:trride/grab-handler.git", |
118773