fix fetching incidents for specific date in backend

This commit is contained in:
Bilal Catic
2019-06-18 10:32:17 +02:00
parent 1371ab0580
commit 16a62b35de
4 changed files with 54 additions and 9 deletions

View File

@@ -56,6 +56,7 @@ const integrationServiceErrors = {
FAILED_TO_SAVE_BOOKINGS: 'Failed to save booking reservations',
FAILED_TO_SAVE_DOOR_LOCK_ENTRIES: 'Failed to save door lock entries',
FAILED_TO_SAVE_DATA_GENERIC: 'Failed to save data',
INVALID_DATE_RANGE: 'Dates in date range are invalid',
};
const incidentType = {
@@ -64,6 +65,10 @@ const incidentType = {
UNSCHEDULED_INCIDENT: 3,
};
const UI_TIMEZONE = process.env.UI_TIMEZONE || 'America/Los_Angeles';
const DEFAULT_DATE_FORMAT = 'YYYY-MM-DD';
module.exports = {
VALID_CSV_HEADERS,
USER_ENTRY_EVENT,
@@ -75,4 +80,6 @@ module.exports = {
unlockedIncidentLevelsPrices,
integrationServiceErrors,
incidentType,
UI_TIMEZONE,
DEFAULT_DATE_FORMAT,
};