Skip to content

Commit

Permalink
fix: Stop exposing includes in getEntries response
Browse files Browse the repository at this point in the history
Because links were already resolved, there's no point in keeping the includes property in the response.

Fixes #69
  • Loading branch information
trodrigues committed Apr 5, 2016
1 parent faa2595 commit d6bef03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/entities/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export function wrapEntryCollection (data, resolveLinks) {
if (resolveLinks) {
const includes = prepareIncludes(wrappedData.includes, wrappedData.items)
mixinLinkGetters(wrappedData.items, includes)
delete wrappedData.includes
}
return Object.freeze(wrappedData)
}
Expand Down

0 comments on commit d6bef03

Please sign in to comment.