timeeditapi
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -20,3 +20,3 @@ 'use strict'; | ||
buildTodaysSchedule(object, roomId){ | ||
return this.buildRoomSchedule(object, roomId) | ||
let todaysSchedule = this.buildRoomSchedule(object, roomId) | ||
.filter((reservation) => { | ||
@@ -30,2 +30,3 @@ let reservationDate = this.parseDate(reservation.booking.time.startDate); | ||
}); | ||
return todaysSchedule.length > 0 ? todaysSchedule : { roomId } ; | ||
} | ||
@@ -32,0 +33,0 @@ /** |
{ | ||
"name": "timeeditapi", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "api to easy get schedule information from timeedit", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
6599
170