Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix obsolete client calls for contentful.js 3.x #148

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Pete-St
Copy link

@Pete-St Pete-St commented Jul 21, 2016

roots-contentful updated to contentful.js 3.x in April 2016, but the code still invokes old method names that no longer exist in contentful.js. The resulting error message is:

TypeError: client.entries is not a function

This change updates the client calls from client.entries() to client.getEntries(), and from client.contentType to client..getContentType.

….entries() and .contentType(), both of which do not seem to have been supported in Contentful.js since 3.x/April 2016.
@jescalan
Copy link
Contributor

lgtm

…ith an items member that is an array of entries.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants