Skip to content

Commit

Permalink
update threshold to 120, include equals in eval logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspercroome committed Apr 26, 2024
1 parent a9425a2 commit d7bd55c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client-mu-plugins/goodbids/src/classes/Auctions/Auction.php
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ public function is_ending_soon(): bool {
// $extension = $this->get_bid_extension();

$static_threshold_min = 60*60; // 60 minutes
$static_threshold_max = 60*115; // 115 minutes
$static_threshold_max = 60*120; // 120 minutes

// if ( ! $extension ) {
// return false;
Expand All @@ -564,7 +564,7 @@ public function is_ending_soon(): bool {
// and the diff is more than the min for the threshold
// (i.e., if it falls within the threshold),
// then it's ending soon.
$ending_soon = $static_threshold_max > $diff && $static_threshold_min < $diff;
$ending_soon = $static_threshold_max > $diff && $static_threshold_min <= $diff;

return $ending_soon;
}
Expand Down

0 comments on commit d7bd55c

Please sign in to comment.