improve import

This commit is contained in:
hackerESQ
2024-09-05 18:33:05 -05:00
parent 5c19236561
commit cf89c44a62
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ class Transaction extends Model
}
// get the holding for a symbol and portfolio (or create one)
$holding = Holding::firstOrNew([
$holding = Holding::firstOrCreate([
'portfolio_id' => $this->portfolio_id,
'symbol' => $this->symbol
], [