Skip to content

Commit 2454eff

Browse files
fix: update query to fetch correct finalScore field (#2891)
Co-authored-by: Maksim Shylau <[email protected]>
1 parent c634ed6 commit 2454eff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/routes/profile/student-stats.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const getStudentStatsWithPosition = async (githubId: string, permissions: Permis
4545
.addSelect('ARRAY_AGG ("taskResult"."githubPrUrl") AS "taskGithubPrUris"').addSelect(`ARRAY_AGG (COALESCE(
4646
"taskResult"."score",
4747
"taskInterview"."score",
48-
("stageInterviewFeedback"."json"::json -> 'resume' ->> 'score')::int
48+
("stageInterviewFeedback"."json"::json -> 'steps' -> 'decision' -> 'values' ->> 'finalScore')::int
4949
)) AS "taskScores"`);
5050

5151
query.addSelect('"student"."expellingReason" AS "expellingReason"');

0 commit comments

Comments
 (0)