Skip to content

Commit

Permalink
Subscribe to ninety_days_synced
Browse files Browse the repository at this point in the history
  • Loading branch information
allthesignals committed Jun 24, 2024
1 parent e152f1f commit 8b2672a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/app/services/pinwheel_webhook_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def create_subscription(tunnel_url, name)
puts " Registering Pinwheel webhooks for Ngrok tunnel..."
response = @pinwheel.create_webhook_subscription([
"account.added",
"paystubs.added"
"paystubs.added",
"paystubs.ninety_days_synced"
], URI.join(tunnel_url, "/webhooks/pinwheel/events", format_identifier_hash(name)))
new_webhook_subscription_id = response["data"]["id"]
puts " ✅ Set up Pinwheel webhook: #{new_webhook_subscription_id}"
Expand Down

0 comments on commit 8b2672a

Please sign in to comment.