We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76217fd commit 4a3ef98Copy full SHA for 4a3ef98
app/controllers/funds_controller.rb
@@ -32,10 +32,10 @@ def donate
32
if params[:OrderId].present?
33
id = params[:OrderId]
34
35
- @transaction = Transaction.donations.where("transactions.order->>'legacyId' = ?", id.to_s)
+ @transaction = Transaction.donations.where("transactions.order->>'legacyId' = ?", id.to_s).first
36
if @transaction.nil?
37
@fund.sync_transactions
38
39
raise ActiveRecord::RecordNotFound unless @transaction
40
end
41
0 commit comments