diff --git a/app/Classes/Jobs/Commands/V2/OneTimeFixWalletGroupTransactionV2CommandJob.php b/app/Classes/Jobs/Commands/V2/OneTimeFixWalletGroupTransactionV2CommandJob.php index cbd1af0c..e28049f5 100644 --- a/app/Classes/Jobs/Commands/V2/OneTimeFixWalletGroupTransactionV2CommandJob.php +++ b/app/Classes/Jobs/Commands/V2/OneTimeFixWalletGroupTransactionV2CommandJob.php @@ -22,9 +22,9 @@ class OneTimeFixWalletGroupTransactionV2CommandJob implements ShouldQueue public function handle() { - Log::info(Carbon::now() . ': Start job - This is a one time fix of a double charge problem of a group payment through wallet.'); + Log::info(Carbon::now() . ': Start job - This is a one time fix of unsuccessful group payment through wallet.'); $start = new Carbon(); - $invoice_ids = [29223, 29200]; //29223, 29200 + $invoice_ids = [30760, 30642, 30641, 30640, 30637, 30635, 30545, 30543]; //30760, 30642, 30641, 30640, 30637, 30635, 30545, 30543 $invoices = Transaction::whereIn('id', $invoice_ids)->get(); foreach ($invoices as $invoice) { @@ -38,12 +38,12 @@ class OneTimeFixWalletGroupTransactionV2CommandJob implements ShouldQueue } } } - $group = Group::where('id', 1377)->first(); + $group = Group::where('id', 1499)->first(); $group->status = ApprovalStatus::APPROVED; $group->save(); $end = new Carbon(); $elapsedTime = $start->diff($end)->format('%H:%I:%S'); - Log::info(Carbon::now() . ': End job - This is a one time fix of a double charge problem of a group payment through wallet. ElapsedTime: ' . $elapsedTime . '.'); + Log::info(Carbon::now() . ': End job - This is a one time fix of unsuccessful group payment through wallet. ElapsedTime: ' . $elapsedTime . '.'); } } diff --git a/app/Console/Commands/V2/OneTimeFixWalletGroupTransactionV2Command.php b/app/Console/Commands/V2/OneTimeFixWalletGroupTransactionV2Command.php index 0c7c39a2..af8bfa35 100644 --- a/app/Console/Commands/V2/OneTimeFixWalletGroupTransactionV2Command.php +++ b/app/Console/Commands/V2/OneTimeFixWalletGroupTransactionV2Command.php @@ -20,7 +20,7 @@ class OneTimeFixWalletGroupTransactionV2Command extends Command * * @var string */ - protected $description = 'This is a one time fix of a double charge problem of a group payment through wallet.'; + protected $description = 'This is a one time fix of unsuccessful group payment through wallet.'; protected $output = null; @@ -43,7 +43,7 @@ class OneTimeFixWalletGroupTransactionV2Command extends Command */ public function handle() { - return; + // return; OneTimeFixWalletGroupTransactionV2CommandJob::dispatch(); }