fixing new course config form

This commit is contained in:
2025-10-27 14:22:13 -06:00
parent e35a5ffab6
commit 15b184ddc0
4 changed files with 37 additions and 10 deletions

View File

@@ -103,6 +103,13 @@ async function migrateCourseContent(
) {
const oldCourseName = settingsFromCourseToImport.name;
const newCourseName = settings.name;
console.log(
"migrating content from ",
oldCourseName,
"to ",
newCourseName
);
const oldModules = await getModuleNamesFromFiles(oldCourseName);
await Promise.all(
oldModules.map(async (moduleName) => {