Commit 6f9024cc authored by Mycha de Vrees's avatar Mycha de Vrees
Browse files

small fix for mapresponse

parent 18b656ab
Pipeline #366 passed with stage
in 1 minute and 27 seconds
......@@ -57,7 +57,7 @@ function _mapResponse (response) {
for (const key in include.relationships) {
if (Object.hasOwnProperty.call(include.relationships, key) &&
include.relationships[key].data && include.relationships[key].data.length > 0) {
obj.authors = _fetchIncludes({
obj[key] = _fetchIncludes({
relation: include,
response,
type: key,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment