MCPcopy Create free account
hub / github.com/code100x/cms / getVideoProgressForUser

Function getVideoProgressForUser

src/db/course.ts:241–251  ·  view source on GitHub ↗
(
  userId: string,
  markAsCompleted?: boolean,
)

Source from the content-addressed store, hash-verified

239}
240
241export function getVideoProgressForUser(
242 userId: string,
243 markAsCompleted?: boolean,
244) {
245 return db.videoProgress.findMany({
246 where: {
247 userId,
248 markAsCompleted,
249 },
250 });
251}
252
253interface VideoProgress {
254 duration: number | null;

Callers 2

getPurchasesFunction · 0.90
getFullCourseContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected