Skip to content

Commit b367285

Browse files
committed
More bad merge fix :(
1 parent 98132fb commit b367285

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/course/[course_id]/manage/assignments/[assignment_id]/security/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

app/course/[course_id]/manage/discussion-engagement/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

supabase/migrations/20260118214344_add_discussion_karma.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)