Fix a unsucccessful group payment reported by Eileen

This commit is contained in:
Dillon Ngo
2025-11-17 20:47:47 +08:00
parent 37119344f3
commit 024e0d666a
2 changed files with 6 additions and 6 deletions
@@ -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 . '.');
}
}
@@ -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();
}