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