Here is my code I am using to delete the event sync and the associated tables, It is showing me error even when the table exists.
const unwatchChannels = async () => {
// code example of creating a sync event from cloud code
await Moralis.start({ serverUrl, appId, masterKey });
let options = { tableName: "channels" };
Moralis.Cloud.run("unwatchContractEvent", options, { useMasterKey: true }).then(
(result: any) => {
console.log(result);
}
);
};
The error
{
success: false,
error: 'No event found with tableName "channels" that is created via cloud-code'
}
I used Moralis admin for contract sync.