From 730ce24cc906c4bf5ed2fdb13da49b107e65852d Mon Sep 17 00:00:00 2001 From: Mario Bodemann Date: Mon, 30 Oct 2017 14:12:03 +0100 Subject: [PATCH] chore: capitalise comments --- routes/courses.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/routes/courses.js b/routes/courses.js index 1e35c7e..27e8dd5 100644 --- a/routes/courses.js +++ b/routes/courses.js @@ -2,7 +2,7 @@ const {getCourses, getCourse, getCategories, getCoursesByCategory} = require('./ const attachEntryState = require('./../lib/entry-state') exports.getCourses = async (req, res, next) => { - // we get all the entries with the content type `course` + // We get all the entries with the content type `course` let courses = [] let categories = [] courses = await getCourses(res.locals.currentLocale.code, res.locals.currentApi.id) @@ -24,7 +24,7 @@ exports.getCourse = async (req, res, next) => { const lessonIndex = lessons.findIndex((lesson) => lesson.fields.slug === req.params.lslug) const lesson = lessons[lessonIndex] - // save visited lessons + // Save visited lessons const cookie = req.cookies.visitedLessons let visitedLessons = cookie || [] visitedLessons.push(course.sys.id) @@ -40,7 +40,7 @@ exports.getCourse = async (req, res, next) => { } exports.getCoursesByCategory = async (req, res, next) => { - // we get all the entries with the content type `course` filtered by a category + // We get all the entries with the content type `course` filtered by a category let courses = [] let categories = [] let activeCategory = '' @@ -62,7 +62,7 @@ exports.getLesson = async (req, res, next) => { let lesson = lessons[lessonIndex] const nextLesson = lessons[lessonIndex + 1] || null - // save visited lessons + // Save visited lessons const cookie = req.cookies.visitedLessons let visitedLessons = cookie || [] visitedLessons.push(lesson.sys.id)