From d7bd55cfc22fb4815e0ae4f04203eea616efb557 Mon Sep 17 00:00:00 2001 From: Jasper Croome Date: Fri, 26 Apr 2024 06:24:42 -0700 Subject: [PATCH] update threshold to 120, include equals in eval logic --- client-mu-plugins/goodbids/src/classes/Auctions/Auction.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client-mu-plugins/goodbids/src/classes/Auctions/Auction.php b/client-mu-plugins/goodbids/src/classes/Auctions/Auction.php index 8e8db07a..7c86688f 100644 --- a/client-mu-plugins/goodbids/src/classes/Auctions/Auction.php +++ b/client-mu-plugins/goodbids/src/classes/Auctions/Auction.php @@ -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; @@ -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; }