Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/controllers/monzo_transactions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ def webhook
@webhook = params
logger.info "Webhook recieved, data: #{@webhook}"

sweepstake = "eurovision-2025"
emojis = ["🎤", "eurovision"]
sweepstake = "world-cup-2026"
emojis = ["⚽️", "football"]

begin
if @webhook["type"] == "transaction.created" and emojis.include? @webhook["data"]["notes"].strip.downcase and @webhook["data"]["amount"] == 100
if @webhook["type"] == "transaction.created" and emojis.include? @webhook["data"]["notes"].strip.downcase and @webhook["data"]["amount"] == 200
logger.info "This is a #{sweepstake} payment"
payee = @webhook["data"]["counterparty"]["name"]
logger.info "from #{payee}"
Expand Down
Loading