fix: update types for quiz attempts in lesson content
- Add allow_multiple_attempts and latest_attempt to quiz type - Make quiz fields optional to support conditional return - Fix AuditAction enum usage in RecommendedCourses service
This commit is contained in:
parent
df750723af
commit
4ca5692e6f
2 changed files with 15 additions and 7 deletions
|
|
@ -211,7 +211,7 @@ export class RecommendedCoursesService {
|
|||
// Audit log
|
||||
await auditService.logSync({
|
||||
userId: decoded.id,
|
||||
action: isRecommended ? AuditAction.UPDATE_COURSE : AuditAction.UPDATE_COURSE,
|
||||
action: AuditAction.UPDATE,
|
||||
entityType: 'Course',
|
||||
entityId: courseId,
|
||||
oldValue: { is_recommended: course.is_recommended },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue