pushed
subh05sus/sparkmentis-fork • 9:53 AM - Aug 25, 2026
This refactor addresses a critical bug where course pack enrollments were causing inflated student and capacity counts by treating each child course as a separate enrollment. The enrollment logic has been centralized into new modules, and admin dashboards now accurately report distinct student counts. Additionally, this update standardizes enrollment processes across all API routes and introduces a new integrity audit script to detect and resolve data drift. 
