From 305a3fb5ed4675bd780119388a568bbff48f13ea Mon Sep 17 00:00:00 2001 From: "riho.takagi" Date: Thu, 14 Mar 2024 12:30:20 -0400 Subject: [PATCH] Use production calendarId --- .../src/client/booking/components/RoomCalendar.tsx | 4 ++-- .../src/client/booking/components/SheetEditor.tsx | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/media_commons_booking_app/src/client/booking/components/RoomCalendar.tsx b/media_commons_booking_app/src/client/booking/components/RoomCalendar.tsx index 7a375c54..26930666 100644 --- a/media_commons_booking_app/src/client/booking/components/RoomCalendar.tsx +++ b/media_commons_booking_app/src/client/booking/components/RoomCalendar.tsx @@ -21,9 +21,9 @@ export const RoomCalendar = ({ useEffect(() => { //PROD - //fetchCalendarEvents(room.calendarIdProd); + fetchCalendarEvents(room.calendarIdProd); //DEV - fetchCalendarEvents(room.calendarId); + //fetchCalendarEvents(room.calendarId); }, []); const fetchCalendarEvents = async (calendarId) => { serverFunctions.getCalendarEvents(calendarId).then((rows) => { diff --git a/media_commons_booking_app/src/client/booking/components/SheetEditor.tsx b/media_commons_booking_app/src/client/booking/components/SheetEditor.tsx index 51634d77..4de1181d 100644 --- a/media_commons_booking_app/src/client/booking/components/SheetEditor.tsx +++ b/media_commons_booking_app/src/client/booking/components/SheetEditor.tsx @@ -51,15 +51,15 @@ const INSTANT_APPROVAL_ROOMS = ['220', '221', '222', '223', '224', '233']; const SheetEditor = () => { //PRODUCTION - //const roomCalendarId = (room) => { - // return findByRoomId(mappingRoomSettings, room.roomId)?.calendarIdProd; - //}; - - //DEV const roomCalendarId = (room) => { - return findByRoomId(mappingRoomSettings, room.roomId)?.calendarId; + return findByRoomId(mappingRoomSettings, room.roomId)?.calendarIdProd; }; + //DEV + //const roomCalendarId = (room) => { + // return findByRoomId(mappingRoomSettings, room.roomId)?.calendarId; + //}; + const getActiveUserEmail = () => { serverFunctions.getActiveUserEmail().then((response) => { console.log('userEmail response', response);