Fix bug with calendar

This commit is contained in:
Senad Uka
2019-08-26 05:03:16 +02:00
parent 2ac4074d94
commit 1447d800bf
9 changed files with 245 additions and 59 deletions

View File

@@ -136,7 +136,9 @@ const getBookingChangeIncidents = (startDate, endDate, memberIds) => {
'createdAt'
];
const filters = {};
const filters = {
deleted: false,
};
if (startDate && endDate) {
filters.createdAt = {
@@ -280,6 +282,7 @@ const getAllIncidents = (dateRange, memberIds) => {
newBookingEnd,
incidentType,
chargeFee,
deleted,
createdAt,
} = bookingChangeIncident;
const memberName = membersMap[memberId].name;
@@ -307,6 +310,7 @@ const getAllIncidents = (dateRange, memberIds) => {
newBookingEndRaw: newBookingEnd,
incidentType,
totalChargeFee: chargeFee,
deleted,
incidentTimestamp: formatTime(createdAt),
incidentTimestampRaw: createdAt,
});