style: fix linting issues met ESLint
This commit is contained in:
parent
a69e2625af
commit
bdbfe380be
4 changed files with 5 additions and 5 deletions
|
@ -26,7 +26,7 @@ export interface LearningObjectNode {
|
|||
transitions: Transition[];
|
||||
created_at: string;
|
||||
updatedAt: string;
|
||||
done?: boolean; // true if a submission exists for this node by the user for whom the learning path is customized.
|
||||
done?: boolean; // True if a submission exists for this node by the user for whom the learning path is customized.
|
||||
}
|
||||
|
||||
export interface LearningPath {
|
||||
|
|
|
@ -99,7 +99,7 @@ async function convertNodes(nodesToLearningObjects: Map<LearningPathNode, Filter
|
|||
version: learningObject.version,
|
||||
transitions: node.transitions
|
||||
.filter(trans => !personalizedFor || isTransitionPossible(trans, lastSubmission)) // If we want a personalized learning path, remove all transitions that aren't possible.
|
||||
.map((trans, i) => convertTransition(trans, i, nodesToLearningObjects)), // then convert all the transition
|
||||
.map((trans, i) => convertTransition(trans, i, nodesToLearningObjects)), // Then convert all the transition
|
||||
};
|
||||
})
|
||||
.toArray();
|
||||
|
|
|
@ -20,9 +20,9 @@ export async function getLastSubmissionForCustomizationTarget(node: LearningPath
|
|||
};
|
||||
if (pathFor.type === 'group') {
|
||||
return await submissionRepo.findMostRecentSubmissionForGroup(learningObjectId, pathFor.group);
|
||||
} else {
|
||||
}
|
||||
return await submissionRepo.findMostRecentSubmissionForStudent(learningObjectId, pathFor.student);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ const learningPathService = {
|
|||
const userContentLearningPaths = await databaseLearningPathProvider.fetchLearningPaths(userContentHruids, language, source, personalizedFor);
|
||||
const nonUserContentLearningPaths = await dwengoApiLearningPathProvider.fetchLearningPaths(nonUserContentHruids, language, source, personalizedFor);
|
||||
|
||||
let result = (userContentLearningPaths.data || []).concat(nonUserContentLearningPaths.data || []);
|
||||
const result = (userContentLearningPaths.data || []).concat(nonUserContentLearningPaths.data || []);
|
||||
|
||||
return {
|
||||
data: result,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue