Skip to content

Commit

Permalink
api: Reverse the reversed chain result
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbader committed Apr 26, 2018
1 parent cc1f3c9 commit dcd2ae8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
DOCKER_REGISTRY_PASSWORD
*.orig
.DS_Store
10 changes: 6 additions & 4 deletions api/src/multichain/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,12 @@ export class RpcMultichainClient implements MultichainClient {
return result;
}, new Map())
.values()
).map(x => ({
key: x.keys,
resource: hexToObject(x.data) as Resource
}));
)
.reverse()
.map(x => ({
key: x.keys,
resource: hexToObject(x.data) as Resource
}));
return allItemsLatestValues;
}

Expand Down

0 comments on commit dcd2ae8

Please sign in to comment.