diff --git a/src/trip/trip.ts b/src/trip/trip.ts index fd54555..001cf3f 100644 --- a/src/trip/trip.ts +++ b/src/trip/trip.ts @@ -66,8 +66,8 @@ class Trip { * @param trip:json-object * @param callback */ - createTrip = (trip, callback) => { - this.util.createDocument(trip, callback); + createTrip = (trip) => { + return this.util.createDocument(trip); };