I managed to sync these events
via
Only thing different from the youtube vid was the āTopicā fieldā¦ i used the event name not the function that the event was emitted fromā¦
and to catch the event in my cloud fxs via
Moralis.Cloud.afterSave('Shipped', (request) => {
console.log('afterSaved Shipped console', JSON.stringify(request))
log('afterSaved Shipped', JSON.stringify(request))
const query = new Moralis.Query('Shipped')
query.startsWith('transaction_hash', request.object.get('transaction_hash').substr(0, 6))
query.find().then(function (ShippedFlipTx) {
log('flipped Tx', JSON.stringify(ShippedFlipTx))
})
.catch(function (error) {
console.error('FlipShipped Sync error ' + error.code + ' : ' + error.message)
})
})
but i donāt quite understand why the sync system is saving the to: field of the tx/event (which is always the contract) instead of from?