Skip to content
This repository was archived by the owner on Aug 6, 2024. It is now read-only.

Commit 80693fc

Browse files
committed
Add feedback message to error
1 parent 95b7318 commit 80693fc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/graphql/resolvers/Mutation/alterMeeting.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,5 +182,12 @@ export default async (
182182
);
183183
}
184184

185+
// TEMPORARY CODE TO PREVENT OVERBOOKING BUG
186+
if(start != meeting.start || end != meeting.end){
187+
throw new UserInputError(
188+
"You may not edit start or end times of a meeting to prevent a bug involving room overbooking. Any other edits have been saved, but your start & end times are as before."
189+
);
190+
}
191+
// END TEMPORARY CODE
185192
return meeting;
186193
};

0 commit comments

Comments
 (0)