course landing page improvements

This commit is contained in:
Rotimi Best
2023-10-30 04:52:00 +00:00
parent 64a058ebc8
commit d6472a54ca
18 changed files with 189 additions and 112 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ export async function uploadAvatar(courseId: string, avatar: string) {
export async function updateCourse(
courseId: Course['id'],
avatar: string | undefined,
course: Course
course: Partial<Course>
) {
if (avatar && courseId) {
const filename = `course/${courseId + Date.now()}.webp`;