Skip to content

Commit

Permalink
Use production calendarId
Browse files Browse the repository at this point in the history
  • Loading branch information
rlho committed Mar 14, 2024
1 parent fc669c5 commit 305a3fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 305a3fb

Please sign in to comment.