feat: forgot password
config: msg
This commit is contained in:
@@ -19,7 +19,15 @@ class ResetCardsCommand extends Command
|
||||
|
||||
public function handle()
|
||||
{
|
||||
$this->adminService->resetAllCards();
|
||||
$this->info('Successfully reset all cards for active members to 0!');
|
||||
try {
|
||||
$this->adminService->resetAllCards();
|
||||
$this->info('Successfully reset all cards for active members to 0!');
|
||||
} catch (\Throwable $e) {
|
||||
\Illuminate\Support\Facades\Log::error('Lỗi xảy ra khi chạy command reset thẻ hàng tháng (cards:reset): ' . $e->getMessage());
|
||||
$this->error('Reset cards failed: ' . $e->getMessage());
|
||||
return Command::FAILURE;
|
||||
}
|
||||
|
||||
return Command::SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user