fix courses list filtering and titles

This commit is contained in:
Benedikt Rötsch
2017-10-02 15:27:59 +02:00
committed by Benedikt Rötsch
parent 28764d2386
commit 60d2c02ce7
2 changed files with 5 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ exports.getCoursesByCategory = (category, locale = 'en-US', api = `cda`) => {
const client = api === 'cda' ? cdaClient : cpaClient
return client.getEntries({
content_type: 'course',
'fields.category.sys.contentType.sys.id': category,
'fields.categories.sys.id': category,
locale,
include: 10
})