Im trying to sync an address from my front-end, I dont get any errors but they are not getting saved or synced either.
my cloudfunctions.js file
Moralis.Cloud.define("syncAddress",async (request)=>{
return await Moralis.Cloud.run("watchEthAddress", {address:request.params.address},{useMasterKey:true});
})
my front-end code
async syncAddress() {
try {
await Moralis.Cloud.run("syncAddress", { address: this.address }, {useMasterKey:true});
this.address = "";
} catch (error) {
alert(error.message);
}
}