Skip to content

Commit

Permalink
Do not print pending payins, expire after 1 day
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Jun 23, 2024
1 parent 0c6dfa5 commit 519a0e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Console/Commands/CheckPendingPayins.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ class CheckPendingPayins extends Command

public function handle()
{
$pendingPayins = Payin::where('status', 'pending')->get();
$pendingPayins = Payin::where('status', 'pending')
->where('updated_at', '>', now()->subDay())
->get();

$controller = new LnAddressController();

Expand All @@ -42,7 +44,7 @@ public function handle()

Log::info('Payin settled: '.$payin->id);
} else {
Log::info('Payin still pending: '.$payin->id);
// Log::info('Payin still pending: '.$payin->id);
}
}

Expand Down

0 comments on commit 519a0e8

Please sign in to comment.