From 64a43d40d14e5d762dc743940b5970ea4c51aae9 Mon Sep 17 00:00:00 2001 From: Zach Gollwitzer Date: Tue, 24 Jun 2025 11:14:15 -0400 Subject: [PATCH] Fix current market price error for securities --- app/models/security/provided.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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