Skip to content

Commit b8bfb60

Browse files
Fix path for execute() (#13288)
When FeedbackSession is provided, modified student's path to follow Sql logic, instead of Datastore logic. Co-authored-by: Jason Qiu <[email protected]>
1 parent eda63c7 commit b8bfb60

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/java/teammates/ui/webapi/GetHasResponsesAction.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,12 @@ public JsonResult execute() {
146146
return new JsonResult(new HasResponsesData(sessionsHasResponses));
147147
}
148148

149-
FeedbackSessionAttributes feedbackSession = getNonNullFeedbackSession(feedbackSessionName, courseId);
149+
FeedbackSession feedbackSession = getNonNullSqlFeedbackSession(feedbackSessionName, courseId);
150150

151-
StudentAttributes student = logic.getStudentForGoogleId(courseId, userInfo.getId());
151+
Student student = sqlLogic.getStudentByGoogleId(courseId, userInfo.getId());
152152
return new JsonResult(new HasResponsesData(
153-
logic.isFeedbackSessionAttemptedByStudent(feedbackSession, student.getEmail(), student.getTeam())));
153+
sqlLogic.isFeedbackSessionAttemptedByStudent(
154+
feedbackSession, student.getEmail(), student.getTeamName())));
154155
}
155156

156157
private JsonResult handleInstructorReq() {

0 commit comments

Comments
 (0)