From a90d539fd667cb10cb665e7cd9767c0380a26856 Mon Sep 17 00:00:00 2001 From: A1Gard Date: Mon, 4 Nov 2024 15:31:17 +0330 Subject: [PATCH] update price --- app/Console/Commands/GoldPriceUpdate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/GoldPriceUpdate.php b/app/Console/Commands/GoldPriceUpdate.php index 51bf3e6..51de199 100644 --- a/app/Console/Commands/GoldPriceUpdate.php +++ b/app/Console/Commands/GoldPriceUpdate.php @@ -37,7 +37,7 @@ class GoldPriceUpdate extends Command // print_r($data); if (isset($data->gold)) { $s = Setting::where('key', 'gold')->first(); - $s->value = $data->gold / 10; + $s->value = floor($data->gold / 10); $s->save(); $this->info('Price updated successfully'); }else{