Skip to content

Commit

Permalink
Fix command date, created_at <= now - tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
darbaoui committed Nov 30, 2022
1 parent 2793dee commit b14220e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/CleanPendingTransactionCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function handle()

$transactions = Transaction::whereStatus(YouCanPayStatus::pending())
->where('created_at', '<=', Carbon::now())
->where('created_at', '>=', Carbon::now()->subSeconds($tolerance ?? 60*60*24))
->where('created_at', '<=', Carbon::now()->subSeconds($tolerance ?? 60*60*24))
->get();

foreach ($transactions as $transaction) {
Expand Down

0 comments on commit b14220e

Please sign in to comment.