Skip to content

Commit

Permalink
imports and renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriB01 committed Aug 29, 2024
1 parent 2f5733d commit e03df2a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions src/components/CreateTopic/Modal/CreateTopicModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ import {
ExistingTopicsTable
} from '@components'
import { LearningPathTopic, RemoteLearningElement, RemoteTopic } from '@core'
import { postCalculateLearningPath, postLearningElement, postLearningPathAlgorithm, postTopic } from '@services'
import {
postCalculateLearningPathForAllStudents,
postLearningElement,
postLearningPathAlgorithm,
postTopic
} from '@services'
import { usePersistedStore, useStore } from '@store'

type CourseModalProps = {
Expand Down Expand Up @@ -164,7 +169,7 @@ const CreateTopicModal = memo(({ open = false, handleClose }: CourseModalProps)
role: userRole
})

return postCalculateLearningPath({ userId, courseId, topicId, outputJson })
return postCalculateLearningPathForAllStudents({ userId, courseId, topicId, outputJson })
}

const handleCreate = (
Expand Down
2 changes: 1 addition & 1 deletion src/services/LearningPath/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ export { fetchLearningPathElement } from './fetchLearningPathElement'
export { postCalculateLearningPathILS } from './postCalculateLearningPathILS'
export { fetchLearningPathElementStatus } from './fetchLearningPathElementStatus'
export { fetchLearningPathElementSpecificStatus } from './fetchLearningPathElementSpecificStatus'
export { postCalculateLearningPath } from './postCalculateLearningPath'
export { postCalculateLearningPathForAllStudents } from './postCalculateLearningPathForAllStudents'
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type PostCalculateLearningPathProps = {
* @category Services
*/

export const postCalculateLearningPath = async ({
export const postCalculateLearningPathForAllStudents = async ({
userId,
courseId,
topicId,
Expand Down
2 changes: 1 addition & 1 deletion src/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export {
fetchLearningPathElement,
fetchLearningPathElementStatus,
fetchLearningPathElementSpecificStatus,
postCalculateLearningPath
postCalculateLearningPathForAllStudents
} from './LearningPath'
export { fetchLearningPathTopic, postTopic } from './Topic'
export { postContactForm } from './contact'
Expand Down

0 comments on commit e03df2a

Please sign in to comment.