chore: sort top courses by completion and spacing fixes #531

This commit is contained in:
Rotimi Best
2024-12-31 17:47:07 +01:00
parent e4c599044e
commit 5f367a9540
2 changed files with 7 additions and 4 deletions
@@ -72,6 +72,7 @@ SELECT
AND lc.profile_id = gm.profile_id
WHERE c.status = 'ACTIVE' AND g.organization_id = org_id_arg
GROUP BY c.id, c.title
ORDER BY completed_lessons DESC
) as course_stats
LIMIT 5;
END;