feat(lessons): Add lessons modules

This commit is contained in:
Khaled Garbaya
2017-09-27 11:50:00 +02:00
committed by Benedikt Rötsch
parent 1875c99a4c
commit 62ecdfe60c
7 changed files with 43 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ exports.getCourse = (slug) => {
// the SDK support link resolution only when you request the collection endpoint
// That's why we are using getEntries with a query instead of getEntry(entryId)
// make sure to specify the content_type whenever you want to perform a query
return client.getEntries({content_type: 'course', 'fields.slug': slug})
return client.getEntries({content_type: 'course', 'fields.slug': slug, include: 10})
.then((response) => response.items[0])
}