Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

fix(models): use self.id (#2410)

Kenrick Tandriancea49d5038ae
diff --git a/app/models/security/provided.rb b/app/models/security/provided.rb
index ca886420..6f490a57 100644
--- a/app/models/security/provided.rb
+++ b/app/models/security/provided.rb
@@ -53,7 +53,7 @@ module Security::Provided
price = response.data
Security::Price.find_or_create_by!(
- security_id: price.security.id,
+ security_id: self.id,
date: price.date,
price: price.price,
currency: price.currency