Skip to content

Commit

Permalink
for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rlho committed Feb 29, 2024
1 parent 149f73d commit 1885ca4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 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 @@ -50,16 +50,16 @@ const SAFTY_TRAINING_SHEET_NAME = 'safety_training_users';
const INSTANT_APPROVAL_ROOMS = ['221', '222', '223', '224'];

const SheetEditor = () => {
//IN PRODUCTION
const roomCalendarId = (room) => {
return findByRoomId(mappingRoomSettings, room.roomId)?.calendarIdProd;
};

//IN DEV
//PRODUCTION
//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 Expand Up @@ -200,7 +200,9 @@ const SheetEditor = () => {
[]
);
const trained = emails.includes(userEmail);
setIsSafetyTrained(trained);
if (trained) {
setIsSafetyTrained(trained);
}
});
}
};
Expand Down
2 changes: 1 addition & 1 deletion media_commons_booking_app/src/server/admin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const BOOKING_SHEET_NAME = 'bookings';
export const BOOKING_STATUS_SHEET_NAME = 'bookingStatus';
const SECOND_APPROVER_EMAIL = 'ss12430@nyu.edu';
const SECOND_APPROVER_EMAIL = 'mediacommons.reservations@nyu.edu';

const current = new Date();

Expand Down

0 comments on commit 1885ca4

Please sign in to comment.