Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
#3 set available seats from eventsBooking
Browse files Browse the repository at this point in the history
  • Loading branch information
steffchep committed Feb 19, 2018
1 parent 2536e2e commit 14d4e14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/webapp/js/utils/dataHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ define(['moment'], function(moment) {
function enrichData(entry, metaData) {
entry.roomName = getRoomName(entry.locationId, metaData.locations);
entry.formattedStart = moment(entry.start).format('MMM DD, HH:mm');
entry.availableSeats = getSeats(entry.locationId, metaData.locations);
//entry.availableSeats = getSeats(entry.locationId, metaData.locations);
}

function addDeltaToConferences(events, delta) {
Expand All @@ -76,6 +76,7 @@ define(['moment'], function(moment) {
event.fullyBooked = delta[i].fullyBooked;
event.numberOfFavorites = delta[i].numberOfFavorites;
event.occupiedSeats = delta[i].numberOccupied;
event.availableSeats = delta[i].locationCapacity;
}
}
return events;
Expand Down

0 comments on commit 14d4e14

Please sign in to comment.