fix
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Console\Commands;
|
||||
|
||||
use App\Services\Admin\Contracts\AdminServiceInterface;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class ResetCardsCommand extends Command
|
||||
{
|
||||
@@ -21,10 +22,9 @@ class ResetCardsCommand extends Command
|
||||
{
|
||||
try {
|
||||
$this->adminService->resetAllCards();
|
||||
$this->info('Successfully reset all cards for active members to 0!');
|
||||
Log::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());
|
||||
Log::error('Error occurred while executing monthly card reset command (cards:reset): ' . $e->getMessage());
|
||||
return Command::FAILURE;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ use Illuminate\Pagination\LengthAwarePaginator;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
use App\DTOs\UserFilterDto;
|
||||
|
||||
@@ -205,7 +206,7 @@ class AdminService implements AdminServiceInterface
|
||||
'flag_send' => config('constants.FLAG_SEND_DISABLED'),
|
||||
]);
|
||||
|
||||
\Illuminate\Support\Facades\Log::info("Thực hiện reset thẻ hàng tháng thành công cho {$activeUserCount} tài khoản active.");
|
||||
Log::info("Monthly card reset executed successfully for {$activeUserCount} active accounts.");
|
||||
}
|
||||
|
||||
public function updateAddCard(int $id, array $data): void
|
||||
|
||||
Reference in New Issue
Block a user