Moralis.Cloud.afterSave(âCharacterNFTMintedâ , async (request) =>{
const confirmed = request.object.get("confirmed");
const sender = request.object.get("sender");
const query = new Moralis.Query("Notifications");
const pipeline = [
{ match: { address: { $in: [ "sender" ]} } },
];
const result = await query.aggregate(pipeline,{ useMasterKey: true});
const email = result[0].email
const number = result[0].number
const isEnabled = result[0].isEnabled
const address = result[0].address
});
Can you help me with this? If I run this on the console of the dashboard returns the object but in moralis cloud returns null