Hi ,
I have this function defined in the clouds:
Moralis.Cloud.define("get1", (request) => {
const logger = Moralis.Cloud.getLogger();
logger.info("Now returning 1");
return 1;
});
then, in the API js_console, I call this code by this:
const _get1 = async() => {
console.log("waiting for 1")
const params = {};
const one = await Parse.Cloud.run("get1", params);
console.log("GOT: ",one) // Problem is here: this code never runs in the API/js_console (but in app it runs OK)
}
_get1();
Looking to the to the Core/Logs it seems no problems; Code runs with Result:1
in app code runs OK.
But in the api_console/js_console: The result never shown up (?!)
Only see this:
Log":{ 1 item
“result”: string"waiting for 1"
}