File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
app/course/[course_id]/manage
assignments/[assignment_id]/security Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ const SUBMISSION_FILES_SELECT = `
5858 repository,
5959 profile_id,
6060 assignment_id,
61- grader_results(
61+ grader_results!grader_results_submission_id_fkey (
6262 id,
6363 score,
6464 max_score,
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ async function getStudentEngagement(course_id: number): Promise<StudentEngagemen
3030 return data ;
3131}
3232
33- export default async function DiscussionEngagementPage ( { params } : { params : { course_id : string } } ) {
34- const course_id = Number . parseInt ( params . course_id ) ;
33+ export default async function DiscussionEngagementPage ( { params } : { params : Promise < { course_id : string } > } ) {
34+ const course_id = Number . parseInt ( ( await params ) . course_id ) ;
3535 const headersList = await headers ( ) ;
3636 const user_id = headersList . get ( "X-User-ID" ) ;
3737
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ BEGIN
108108 SELECT 1
109109 FROM public .user_roles ur
110110 WHERE ur .class_id = p_class_id
111- AND ur .public_profile_id = auth .uid ()
111+ AND ur .user_id = auth .uid ()
112112 AND ur .role IN (' instructor' , ' grader' )
113113 AND ur .disabled = false
114114 ) INTO v_is_authorized;
You can’t perform that action at this time.
0 commit comments