Hi Iâm having tons of problems with moralis cloud functions. some times they work, somw times they donât and it doesnât log any error, it simply doesnât fire.
Today morning I had a server with the same problem, I killed it and created a new one. This new one worked with the same functions. Then it stopped updating, although the log says the function has updated, and the preview in the dashboards shows the new function, the execution is of the old version.
Now I created a new server in another network and it is not firing again.
On top of that i donât know if I have to use âMoralis.CloudâŚâ or âParse.CloudâŚâ, with Parse it works, with Moralis doesnât, but the documentation and examples all use âMoralis.CloudâŚâ
Anyone that can help?
btw one of my function looks like this:
Parse.Cloud.afterSave("SellTBsc", async (request) => {
const confirmed = request.object.get("confirmed");
const amount = request.object.get("amount");
const buyer = request.object.get("buyer");
logger.info("TBSC: Confirmed: " + confirmed);
logger.info("TBSC: Amount: " + amount);
logger.info("TBSC: Buyer: " + buyer);
// An HTTP Request
logger.error("DONE! TBSC");
});
** The comment about the http request is because there will be one there, but right now is only a comment, it is not working just like this.