From cea49d5038ae5d4d4b5ea1a297051243563ccf77 Mon Sep 17 00:00:00 2001 From: Kenrick Tandrian <60643640+KenTandrian@users.noreply.github.com> Date: Tue, 24 Jun 2025 22:15:28 +0700 Subject: [PATCH] fix(models): use self.id (#2410) --- 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