mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-25 16:19:40 +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,
|
rate: response.rate,
|
||||||
date: date
|
date: date
|
||||||
|
|
||||||
rate.save! if cache
|
if cache
|
||||||
|
rate.save! rescue ActiveRecord::RecordNotUnique
|
||||||
|
end
|
||||||
rate
|
rate
|
||||||
else
|
else
|
||||||
nil
|
nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue