diff --git a/servers/mu/src/domain/api/pushMsg.js b/servers/mu/src/domain/api/pushMsg.js index 1f52d87e1..155726c2c 100644 --- a/servers/mu/src/domain/api/pushMsg.js +++ b/servers/mu/src/domain/api/pushMsg.js @@ -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) } } diff --git a/servers/mu/src/domain/api/pushMsg.test.js b/servers/mu/src/domain/api/pushMsg.test.js index d32759aff..e58970883 100644 --- a/servers/mu/src/domain/api/pushMsg.test.js +++ b/servers/mu/src/domain/api/pushMsg.test.js @@ -30,7 +30,7 @@ describe('pushMsgWith', () => { transactions: { edges: [ { - block: { height: 1572105 } + node: { block: { height: 1572105 } } } ] }