Skip to content

Commit

Permalink
fix(mu): fix pushing endpoint to use node.block
Browse files Browse the repository at this point in the history
  • Loading branch information
VinceJuliano committed Dec 30, 2024
1 parent 29d5d53 commit 9b57dd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions servers/mu/src/domain/api/pushMsg.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export function pushMsgWith ({
})
.chain(res => {
if(res?.data?.transactions?.edges?.length >= 1) {
if(res.data.transactions.edges[0].block?.height) {
if (res.data.transactions.edges[0].block.height >= ALLOW_PUSHES_AFTER) {
if(res.data.transactions.edges[0].node?.block?.height) {
if (res.data.transactions.edges[0].node.block.height >= ALLOW_PUSHES_AFTER) {
return Resolved(ctx)
}
}
Expand Down
2 changes: 1 addition & 1 deletion servers/mu/src/domain/api/pushMsg.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('pushMsgWith', () => {
transactions: {
edges: [
{
block: { height: 1572105 }
node: { block: { height: 1572105 } }
}
]
}
Expand Down

0 comments on commit 9b57dd0

Please sign in to comment.