apstanisic / zmaj

Zmaj is a headless CMS for managing database
https://zmaj.vercel.app
MIT License
5 stars 0 forks source link

Delete bad webhooks events #12

Open apstanisic opened 1 year ago

apstanisic commented 1 year ago

Since we can't use webhook events as m2m fk, since not all event are collections, we need to delete events that point to non existing collections.

It should be simple, run cron @Cron(...) every day, or every couple of days, that will check all webhooks, and all events in every webhook, to see if it points to non existing collection