feat: RLS on all tables (#399)
* implement RLS * set default course currency to USD * remove unused import * update default currency in course in db
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
import { COURSE_TYPE } from '$lib/utils/types';
|
||||
import RadioButtonChecked from 'carbon-icons-svelte/lib/RadioButtonChecked.svelte';
|
||||
import GrowthIcon from 'carbon-icons-svelte/lib/Growth.svelte';
|
||||
import CourseIcon from 'carbon-icons-svelte/lib/Course.svelte';
|
||||
import UserProfileIcon from 'carbon-icons-svelte/lib/UserProfile.svelte';
|
||||
|
||||
export let bannerImage: string | undefined;
|
||||
@@ -29,7 +28,7 @@
|
||||
export let cost = 0;
|
||||
export let totalLessons = 0;
|
||||
export let totalStudents = 0;
|
||||
export let currency = 'NGN';
|
||||
export let currency = 'USD';
|
||||
export let isOnLandingPage = false;
|
||||
export let isLMS = false;
|
||||
export let isExplore = false;
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
let lessonEditing: string | undefined;
|
||||
let lessonToDelete: Lesson | undefined;
|
||||
let openDeleteModal: boolean = false;
|
||||
let isFetching: boolean = false;
|
||||
let isFetching: boolean = true;
|
||||
let reorder = false;
|
||||
|
||||
const flipDurationMs = 300;
|
||||
@@ -127,7 +127,7 @@
|
||||
}
|
||||
|
||||
$: shouldGoToNextLesson = query.get('next') === 'true';
|
||||
$: shouldGoToNextLesson && onNextQuery($lessons);
|
||||
$: !isFetching && shouldGoToNextLesson && onNextQuery($lessons);
|
||||
$: isLiveClass = $course.type === COURSE_TYPE.LIVE_CLASS;
|
||||
</script>
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user