@mayjer oof I think I have another one:
Moralis.Cloud.beforeSave("EthSoldItems", async (request) => {
const query = new Moralis.Query("EthItemsForSale")
query.equalTo('uid', request.object.get('uid'))
const item = await query.first({useMasterKey:true})
if (item) {
// do cool stuff and then...
// remove from sales dbs
await item.destroy(null, {useMasterKey:true})
}
});
Results in error:
Error syncing realtime event for topic 0xe24570e3816dbfb499d860fae937bb9ef063d7970dfc540a0a0cfff7c06df03e
{"message":"Permission denied for action delete on class EthItemsForSale.","code":119}
With this table EthItemsForSale CLP set to Pubic Read only, rest all closed.