I created a ‘watchContractEvent’ using the following code.
const options = {
tableName : "sampleTable",
...
}
Moralis.Cloud.run("watchContractEvent", options, { useMasterKey: true });
Then, I tried to unwatch/delete the same using the following code
const options = {
tableName : "sampleTable",
}
Moralis.Cloud.run("unwatchContractEvent", options, { useMasterKey: true });
But I can’t unwatch/delete it. It is throwing the following error.
{
success: false,
error: 'No event found with tableName "sampleTable" that is created via cloud-code'
}
I am kinda stuck here . Any help …?
Note : I am using nodejs and moralis package