diff --git a/services/cms-service/src/handlers/tasks.rs b/services/cms-service/src/handlers/tasks.rs index c85a4f8..42b08c7 100644 --- a/services/cms-service/src/handlers/tasks.rs +++ b/services/cms-service/src/handlers/tasks.rs @@ -36,7 +36,8 @@ pub async fn get_background_tasks( l.transcription_status, l.updated_at FROM lessons l - JOIN courses c ON l.course_id = c.id + JOIN modules m ON l.module_id = m.id + JOIN courses c ON m.course_id = c.id WHERE l.transcription_status IN ('queued', 'processing', 'failed') ORDER BY l.updated_at DESC "#;