Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
dkflfkd53 committed Sep 26, 2024
1 parent 3d357a3 commit da7e7b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.repo.whopper.application.teacher.component;

import com.repo.whopper.common.exception.student.StudentNotFoundException;
import com.repo.whopper.common.exception.teacher.TeacherNotFoundException;
import com.repo.whopper.domain.teacher.TeacherModel;
import com.repo.whopper.domain.teacher.TeacherRepository;
import lombok.RequiredArgsConstructor;
Expand All @@ -21,6 +21,6 @@ public TeacherModel getTeacher() {
.getName();

return teacherRepository.findById(id)
.orElseThrow(() -> StudentNotFoundException.EXCEPTION);
.orElseThrow(() -> TeacherNotFoundException.EXCEPTION);
}
}

0 comments on commit da7e7b1

Please sign in to comment.