From 17c87ee84dfe9159c4ceca786c1ee2a04d87680b Mon Sep 17 00:00:00 2001 From: SteffenGorenflo Date: Fri, 19 Jun 2015 18:53:57 +0200 Subject: [PATCH] return promise instead of using callback #35 --- src/trip/trip.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); };