Skip to content

Commit d088887

Browse files
fix(progress): drop bogus tenant_id filter on lesson_completions in student dashboard
lesson_completions has no tenant_id column — same root cause as 264f406. The standalone query for the dashboard stat was still filtering by it, returning 0 rows and showing "0 lessons completed" permanently. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e4ee116 commit d088887

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

app/[locale]/dashboard/student/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ async function getData(userId: string, tenantId: string) {
4747
supabase
4848
.from('lesson_completions')
4949
.select('lesson_id')
50-
.eq('user_id', userId)
51-
.eq('tenant_id', tenantId),
50+
.eq('user_id', userId),
5251

5352
supabase
5453
.from('exams')

0 commit comments

Comments
 (0)