fix: Fix Mario

This commit is contained in:
Khaled Garbaya
2017-12-14 13:55:51 +01:00
parent fca21ba3f1
commit 4ceb2697fe
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))