Skip to content

Commit

Permalink
remove after_commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ancorcruz committed Jan 2, 2025
1 parent 100a6c2 commit e9c1268
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/services/inbound_webhooks/create_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ def call
event_type:
)

after_commit do
InboundWebhooks::ProcessJob.perform_later(inbound_webhook:)
end
InboundWebhooks::ProcessJob.perform_later(inbound_webhook:)

result.inbound_webhook = inbound_webhook
result
Expand Down

0 comments on commit e9c1268

Please sign in to comment.