This is the cloud function defined
Moralis.Cloud.define("getLocations", async (request) => {
const logger = Moralis.Cloud.getLogger();
const config = await Moralis.Config.get({useMasterKey: true});
const mapAdd = config.get("MAP_ADD");
const chainId = config.get("CHAIN_ID");
logger.info("LAY_LAND_ADD:"+mapAdd);
const web3 = Moralis.web3ByChain(chainId); // BSC
const contract = new web3.eth.Contract(Life_Map_ABI, mapAdd);
const result = await contract.methods.getLocations().call();
return result;
})
Why is there more printing ?
Ran cloud function getLocations for user undefined with:
Input: {"_ApplicationId":"xxxx"}
Result: xxxx
How do you remove such printouts