Skip to content

Commit fe4abb3

Browse files
Switch to const
1 parent 8c1abe2 commit fe4abb3

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

plugins/output/adapt/publish.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ function publishCourse(courseId, mode, request, response, next) {
2929
let resultObject = {};
3030

3131
// shorthand directories
32-
let FRAMEWORK_ROOT_FOLDER = path.join(configuration.tempDir, configuration.getConfig('masterTenantID'), Constants.Folders.Framework);
33-
let SRC_FOLDER = path.join(FRAMEWORK_ROOT_FOLDER, Constants.Folders.Source);
34-
let COURSES_FOLDER = path.join(FRAMEWORK_ROOT_FOLDER, Constants.Folders.AllCourses);
35-
let COURSE_FOLDER = path.join(COURSES_FOLDER, tenantId, courseId);
36-
let BUILD_FOLDER = path.join(COURSE_FOLDER, Constants.Folders.Build);
32+
const FRAMEWORK_ROOT_FOLDER = path.join(configuration.tempDir, configuration.getConfig('masterTenantID'), Constants.Folders.Framework);
33+
const SRC_FOLDER = path.join(FRAMEWORK_ROOT_FOLDER, Constants.Folders.Source);
34+
const COURSES_FOLDER = path.join(FRAMEWORK_ROOT_FOLDER, Constants.Folders.AllCourses);
35+
const COURSE_FOLDER = path.join(COURSES_FOLDER, tenantId, courseId);
36+
const BUILD_FOLDER = path.join(COURSE_FOLDER, Constants.Folders.Build);
3737

3838
let customPluginName = user._id;
3939

0 commit comments

Comments
 (0)