feat: make explore more visible in lms

This commit is contained in:
Rotimi Best
2026-06-10 09:18:20 +01:00
parent 02ae9b81b8
commit dcb5cfbc7b
11 changed files with 223 additions and 27 deletions
+2 -2
View File
@@ -469,9 +469,9 @@ export async function getUserEnrolledCourses(orgId: string, userId: string) {
* @param userId - User ID to exclude enrolled courses
* @returns Array of recommended courses
*/
export async function getRecommendedCourses(orgId: string, userId: string) {
export async function getRecommendedCourses(orgId: string, userId: string, limit?: number) {
try {
return getExploreCourses({ orgId, profileId: userId });
return getExploreCourses({ orgId, profileId: userId, limit });
} catch (error) {
if (error instanceof AppError) throw error;
throw new AppError(