Is it possible to manually trigger a web hook for post_updated


(Marcus Lee Mitchell) #1

I’m looking to make a change to the raw data for a bunch of my posts in a rake task and then re-cook the result.
When this happens I also want to trigger the webhook for post_updated

What’s the best practice way to achieve this?

Many thanks.


(Alan Tan) #2

From your rails console, you can run WebHook.enqueue_post_hooks(:post_edited, post). Make sure Sidekiq is running though.


(Marcus Lee Mitchell) #3

That’s perfect. Thank you so much for the reply.