Skip to content

Commit

Permalink
Update common/achievement/template.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Henkel <[email protected]>
  • Loading branch information
LucasFalkowsky and dhenkel92 authored Jan 22, 2024
1 parent 01cbd2d commit b08850f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/achievement/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async function getTemplatesByMetrics(metricsForAction: Metric[]) {

async function getTemplatesWithCourseRelation(): Promise<Achievement_template[]> {
const templatesByCourseRelation = await getAchievementTemplates(TemplateSelectEnum.BY_COURSE_RELATION);
const courseTemplates: Achievement_template[] = templatesByCourseRelation ? Array.from(templatesByCourseRelation['Subcourse']) : [];
const courseTemplates: Achievement_template[] = templatesByCourseRelation ? Array.from(templatesByCourseRelation[achievement_template_for_enum.Course]) : [];

return courseTemplates;
}

Check failure on line 71 in common/achievement/template.ts

View workflow job for this annotation

GitHub Actions / integration (18.x)

Cannot find name 'achievement_template_for_enum'. Did you mean 'Achievement_template'?
Expand Down

0 comments on commit b08850f

Please sign in to comment.