-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: show notification on error fetching marks #116
- Loading branch information
1 parent
cdd4f65
commit 4b2e58b
Showing
2 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { supabase } from '$lib/utils/functions/supabase'; | ||
|
||
export async function fetchMarks(courseId) { | ||
const { data } = await supabase.rpc('get_marks').eq('course_id', courseId); | ||
const { data, error } = await supabase.rpc('get_marks').eq('course_id', courseId); | ||
|
||
return { data }; | ||
return { data, error }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4b2e58b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
docs – ./apps/docs
docs-rotimi-best.vercel.app
www.classroomio.com
docs-git-main-rotimi-best.vercel.app
ciodocs.vercel.app
classroomio.com
4b2e58b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
landingpage – ./apps/classroomio-com
classroomio-com.vercel.app
landingpage-git-main-rotimi-best.vercel.app
landingpage-rotimi-best.vercel.app