diff options
Diffstat (limited to 'app/Console/Commands/updateRates.php')
-rw-r--r-- | app/Console/Commands/updateRates.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Console/Commands/updateRates.php b/app/Console/Commands/updateRates.php index 12830db..4c06d9e 100644 --- a/app/Console/Commands/updateRates.php +++ b/app/Console/Commands/updateRates.php @@ -60,7 +60,7 @@ class updateRates extends Command $btc = Currency::Where('id', 1)->first(); // setup a Currency object if we don't have one already. - if(!$currency = Currency::where('unit', '=', $rate['unit'])->first()) { + if(!$currency = Currency::where('name', '=', $rate['name'])->first()) { $currency = new Currency(['name'=> $rate['name'], 'unit' => $rate['unit']]); $currency->save(); } |