Hi guys, I am creating some cloud functions using moralis-admin-cli, possibly I am not calling them in the proper way, because I am getting the following error:
Moralis.Cloud.define("Hello", async (request) => {
return "Hello Cloud functions are cool !";
});
loadCloud = async () => {
const item = await Moralis.Cloud.run("Hello");
console.log(item);
};
{
āmessageā: āInvalid function: āHelloāā
}
Uncaught (in promise) Error: Invalid function: āHelloā
_construct https://unpkg.com/[email protected]/dist/moralis.js:31205
Wrapper https://unpkg.com/[email protected]/dist/moralis.js:31555
_createSuper https://unpkg.com/[email protected]/dist/moralis.js:12820
ParseError https://unpkg.com/[email protected]/dist/moralis.js:12871
handleError https://unpkg.com/[email protected]/dist/moralis.js:26465
promise callback*request https://unpkg.com/[email protected]/dist/moralis.js:26455
run https://unpkg.com/[email protected]/dist/moralis.js:459
run https://unpkg.com/[email protected]/dist/moralis.js:385
loadCloud http://127.0.0.1:5500/index.js:441
am I missing something? thanks.