Skip to content

Commit

Permalink
Merge pull request #167 from boostcampwm-2021/hotfix/middleware
Browse files Browse the repository at this point in the history
[Fix] middleware error: 달력 인증
  • Loading branch information
waterdrag0n committed Nov 25, 2021
2 parents 7d9d35c + b476606 commit 025a145
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/routes/schedule-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const router = express.Router();

router.post('/:teamId', checkTeamUser, ScheduleController.createSchedule);
router.get('/:teamId', checkTeamUser, ScheduleController.getSchedule);
router.put('/:scheduleId', checkTeamUser, ScheduleController.updateRepeatSchedule);
router.delete('/:scheduleId', checkTeamUser, ScheduleController.deleteSchedule);
router.put('/:scheduleId', ScheduleController.updateRepeatSchedule);
router.delete('/:scheduleId', ScheduleController.deleteSchedule);

export default router;
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const ExitTeamModal: React.FC<Props> = ({ handleModalClose, teamId }) => {

const handleSubmit = () => {
handleDeleteBtn(setLoadTrigger, teamId);
handleModalClose();
history.push('/');
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const ExitTeamModal: React.FC<Props> = ({ handleModalClose, teamId }) => {
const result = await readTeamUsers(teamId);
if (Object.keys(result).length === 1) handleDeleteBtn(setLoadTrigger, teamId);
else await leaveTeam(setLoadTrigger, teamId);
handleModalClose();
history.push('/');
};
return (
Expand Down

0 comments on commit 025a145

Please sign in to comment.