Skip to content

Commit

Permalink
chore: rename migration file to make it run most recently
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jun 16, 2018
1 parent efd36fc commit 3d94bdc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/pact_broker/webhooks/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,10 @@ def find_latest_triggered_webhooks_for_pact pact
end

def find_latest_triggered_webhooks consumer, provider
# The manual grouping is to get rid of any webhooks that triggered at the same time
LatestTriggeredWebhook
.where(consumer: consumer, provider: provider)
.order(:id)
.all
.group_by{|w| [w.consumer_id, w.provider_id, w.webhook_uuid]}
.values
.collect(&:last)
end

def fail_retrying_triggered_webhooks
Expand Down

0 comments on commit 3d94bdc

Please sign in to comment.