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.
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.
From your rails console
, you can run WebHook.enqueue_post_hooks(:post_edited, post)
. Make sure Sidekiq is running though.
That’s perfect. Thank you so much for the reply.