userEnrollments function
Implementation
@riverpod
Future<List<LearningPathEnrollment>> userEnrollments(
Ref ref, {
required String userId,
required String orgId,
}) async {
final ds = ref.watch(orgDatasourceProvider);
final models = await ds.getUserEnrollments(userId, orgId);
return models.map((m) => m.toEntity()).toList();
}