aboutsummaryrefslogtreecommitdiff
path: root/app/Console
diff options
context:
space:
mode:
authorCalvin Morrison <calvin@fastmailteam.com>2022-08-02 18:38:01 -0400
committerCalvin Morrison <calvin@fastmailteam.com>2022-08-02 18:38:01 -0400
commit0d2180d9b488219e570d354d11ec3782f1b46024 (patch)
tree53aae2ff3b7b2d90878748d1887c87d67d26ad85 /app/Console
parentf2aff7518be55da0fd250e04a4bfc1bbbd5a3d0a (diff)
add a chart
Diffstat (limited to 'app/Console')
-rw-r--r--app/Console/Commands/updateRates.php2
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();
}