Skip to content

Commit

Permalink
Fixes content by id
Browse files Browse the repository at this point in the history
  • Loading branch information
hkirat committed Aug 20, 2024
1 parent 7551f8a commit 6154ca2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/lib/find-content-by-id.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import { ChildCourseContent, FullCourseContent } from '@/db/course';

// findContentById
// This is incorrect.
// If the place you are in is a folder
// It returns all the children
// If the place you are in is a video
// It returns an array with that video as the first element.
export default function findContentById(
contents: FullCourseContent[],
ids: number[],
Expand Down

0 comments on commit 6154ca2

Please sign in to comment.