diff options
author | Calvin Morrison <calvin@fastmailteam.com> | 2022-08-02 18:38:01 -0400 |
---|---|---|
committer | Calvin Morrison <calvin@fastmailteam.com> | 2022-08-02 18:38:01 -0400 |
commit | 0d2180d9b488219e570d354d11ec3782f1b46024 (patch) | |
tree | 53aae2ff3b7b2d90878748d1887c87d67d26ad85 /app/Console | |
parent | f2aff7518be55da0fd250e04a4bfc1bbbd5a3d0a (diff) |
add a chart
Diffstat (limited to 'app/Console')
-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(); } |