mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
parent
7f4c1755ef
commit
61bf53f233
1 changed files with 3 additions and 1 deletions
|
@ -52,7 +52,9 @@ module ExchangeRate::Provided
|
|||
rate: response.rate,
|
||||
date: date
|
||||
|
||||
rate.save! if cache
|
||||
if cache
|
||||
rate.save! rescue ActiveRecord::RecordNotUnique
|
||||
end
|
||||
rate
|
||||
else
|
||||
nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue