fix: Fix courses ordering

This commit is contained in:
Khaled Garbaya
2017-11-08 17:03:38 +01:00
parent 93608ce4ba
commit f6c12658ce

View File

@@ -66,7 +66,7 @@ module.exports.getCourses = assert((locale = 'en-US', api = `cda`) => {
return getClient(api).getEntries({ return getClient(api).getEntries({
content_type: 'course', content_type: 'course',
locale, locale,
order: 'sys.createdAt', // Ordering the entries by creation date order: '-sys.createdAt', // Ordering the entries by creation date
include: 6 // We use include param to increase the link level, the include value goes from 1 to 6 include: 6 // We use include param to increase the link level, the include value goes from 1 to 6
}) })
.then((response) => response.items) .then((response) => response.items)