We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We need to add webhooks around each model event and also any other important API calls. Example:
package subscriber import ( "crowdstart.com/util/webhook" ) // Hooks func (s *Subscriber) AfterCreate() error { return webhook.Emit(s.Context(), s.Namespace(), "subscriber.created", s) } func (s *Subscriber) AfterUpdate(previous *Subscriber) error { return webhook.Emit(s.Context(), s.Namespace(), "subscriber.updated", s, prev) } func (s *Subscriber) AfterDelete() error { return webhook.Emit(s.Context(), s.Namespace(), "subscriber.deleted", s) }
Models that need this:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We need to add webhooks around each model event and also any other important API calls. Example:
Models that need this:
The text was updated successfully, but these errors were encountered: