Skip to content

Commit c9dea0e

Browse files
review tweaks
1 parent d9b40b6 commit c9dea0e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

controllers/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
module.exports.lesson = require('./lessonController');
55
module.exports.course = require('./courseController');
66
module.exports.path = require('./pathController');
7-
module.exports.user = require('./user');
8-
module.exports.nested_data = require('./nested-data');
7+
module.exports.user = require('./userController');
8+
module.exports.nested_data = require('./nestedDataController');

db/seedContent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ async function seedContent(seed_data) {
137137
// now path_funcs are all executed, so course_funcs now full of callbacks, lesson_funcs still empty
138138
await Promise.all(course_funcs.map(courseFunc => courseFunc()));
139139
console.log('Finished seeding all courses');
140-
// now path)funcs and course_funcs all executed, lesson_funcs now full of callbacks
140+
// now path_funcs and course_funcs all executed, lesson_funcs now full of callbacks
141141
await Promise.all(lesson_funcs.map(lessonFunc => lessonFunc()));
142142
// now all functions have been executed
143143
console.log('Finished seeding all lessons');

models/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ const CandidateLesson = CandidateLessonsModel(sequelize, Sequelize);
4545
// https://sequelize.org/master/manual/associations.html
4646
// User.belongsTo(Persona, { foreignKey: 'personaType', targetKey: 'type' });
4747
// Persona.hasMany(User, { foreignKey: 'personaType', sourceKey: 'type' });
48-
Persona.belongsTo(Permission);
49-
Permission.hasMany(Persona);
48+
// Persona.belongsTo(Permission);
49+
// Permission.hasMany(Persona);
5050
// Candidate.belongsTo(Question);
5151
// Question.hasMany(Candidate);
5252
// Candidate.belongsTo(Recruiter, { foreignKey: 'contactedBy' });

utils/transformers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function parseDuration(duration) {
1515
const time_pattern = `T(?<hours>${numbers}H)?(?<minutes>${numbers}M)?(?<seconds>${numbers}S)?`;
1616
const iso8601 = new RegExp(`${period_pattern}${time_pattern}`);
1717
const { groups } = duration.match(iso8601);
18-
// coefficients to convert a time unit to the next smaller time unit
18+
// coefficients to convert a time unit to the next smaller time unit down to a minimum of seconds
1919
const reduce_unit_coeffs = {
2020
years: 12,
2121
months: 4,

0 commit comments

Comments
 (0)