fix: Fix Mario

This commit is contained in:
Khaled Garbaya
2017-12-14 13:55:51 +01:00
committed by Khaled Garbaya
parent 1ef4d1c51a
commit e772281fca
2 changed files with 7 additions and 5 deletions

View File

@@ -29,7 +29,6 @@ module.exports.getCourses = async (request, response, next) => {
let courses = []
let categories = []
courses = await getCourses(response.locals.currentLocale.code, response.locals.currentApi.id)
// Attach entry state flags when using preview API
if (shouldAttachEntryState(response)) {
courses = await Promise.all(courses.map(attachEntryState))