diff --git a/src/components/CreateTopic/Modal/CreateTopicModal.tsx b/src/components/CreateTopic/Modal/CreateTopicModal.tsx index 35ea10ef..bfe2b4af 100644 --- a/src/components/CreateTopic/Modal/CreateTopicModal.tsx +++ b/src/components/CreateTopic/Modal/CreateTopicModal.tsx @@ -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 = { @@ -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 = ( diff --git a/src/services/LearningPath/index.ts b/src/services/LearningPath/index.ts index 77ca8d59..a18608b2 100644 --- a/src/services/LearningPath/index.ts +++ b/src/services/LearningPath/index.ts @@ -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' diff --git a/src/services/LearningPath/postCalculateLearningPath.tsx b/src/services/LearningPath/postCalculateLearningPathForAllStudents.tsx similarity index 94% rename from src/services/LearningPath/postCalculateLearningPath.tsx rename to src/services/LearningPath/postCalculateLearningPathForAllStudents.tsx index 1d82c2bf..e44e5e83 100644 --- a/src/services/LearningPath/postCalculateLearningPath.tsx +++ b/src/services/LearningPath/postCalculateLearningPathForAllStudents.tsx @@ -29,7 +29,7 @@ type PostCalculateLearningPathProps = { * @category Services */ -export const postCalculateLearningPath = async ({ +export const postCalculateLearningPathForAllStudents = async ({ userId, courseId, topicId, diff --git a/src/services/index.ts b/src/services/index.ts index fa0f8c7b..1cf5f6bc 100644 --- a/src/services/index.ts +++ b/src/services/index.ts @@ -12,7 +12,7 @@ export { fetchLearningPathElement, fetchLearningPathElementStatus, fetchLearningPathElementSpecificStatus, - postCalculateLearningPath + postCalculateLearningPathForAllStudents } from './LearningPath' export { fetchLearningPathTopic, postTopic } from './Topic' export { postContactForm } from './contact'