Skip to content

Commit

Permalink
Merge pull request #9 from indexnetwork/api-integration
Browse files Browse the repository at this point in the history
Update item.js
  • Loading branch information
serefyarar authored Jan 31, 2024
2 parents 6a761f5 + 29248f8 commit 5889cb3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/src/services/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,10 @@ export class ItemService {

return {
endCursor: data.indexItemIndex.pageInfo.endCursor,
items: data.indexItemIndex.edges.map(e => e.node.item),
items: data.indexItemIndex.edges.map(({ node: { item: { __typename: type, ...rest } } }) => ({
type,
node: rest
})),
}

} catch (error) {
Expand Down

0 comments on commit 5889cb3

Please sign in to comment.