Skip to content

Commit d6bef03

Browse files
committed
fix: Stop exposing includes in getEntries response
Because links were already resolved, there's no point in keeping the includes property in the response. Fixes #69
1 parent faa2595 commit d6bef03

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/entities/entry.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export function wrapEntryCollection (data, resolveLinks) {
4545
if (resolveLinks) {
4646
const includes = prepareIncludes(wrappedData.includes, wrappedData.items)
4747
mixinLinkGetters(wrappedData.items, includes)
48+
delete wrappedData.includes
4849
}
4950
return Object.freeze(wrappedData)
5051
}

0 commit comments

Comments
 (0)