Skip to content

Commit

Permalink
fix: comments not getting correct fileId
Browse files Browse the repository at this point in the history
  • Loading branch information
braposo committed May 26, 2019
1 parent 17687bc commit 60b7458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ exports.resolvers = {
const { images } = await loadImages(fileId, imageParams);
return Object.entries(images).map(entry => ({ id: entry[0], file: entry[1] }));
},
comments: (_, __, { fileId }) => loadComments(fileId).then(data => data.comments),
comments: ({ fileId }) => loadComments(fileId).then(data => data.comments),
...generateResolversForShortcuts(),
},
};

0 comments on commit 60b7458

Please sign in to comment.