chore: simplify course fetching

This commit is contained in:
Rotimi Best
2024-06-16 05:23:16 +01:00
parent fecdaa116d
commit a7aeba1d80
4 changed files with 17 additions and 22 deletions
@@ -28,7 +28,7 @@ const SLUG_QUERY = `
is_certificate_downloadable,
certificate_theme,
lessons:lesson(
id, title, public, lesson_at, call_url, is_unlocked, order, created_at
id, title, order
)
`;
+3 -2
View File
@@ -19,7 +19,8 @@ export interface GroupPerson {
email: string | null;
group_id: string;
id: string;
profile: Profile;
memberId: string;
profile: Partial<Profile>;
profile_id: string;
role_id: Role['id'];
fullname?: string;
@@ -297,7 +298,7 @@ export interface Lesson {
slide_url?: any; // type unknown;
course_id: string /* foreign key to course.id */;
id: string /* primary key */;
created_at?: string;
created_at: string;
updated_at?: string;
title: string; // type unknown;
public?: boolean;