Skip to content

Commit

Permalink
Merge pull request #92 from BeAPI/fix/cron-schedule
Browse files Browse the repository at this point in the history
fix incorrect timestamp value when scheduling action
  • Loading branch information
petitphp authored Dec 12, 2024
2 parents 75c83cf + e4248ad commit 1ab14da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Orders/Operations.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public static function acknowledge_order( $order_id, $message = '' ) {
if ( false === $ok ) {
//if we cant acknowledge order => add action after 15 min
as_schedule_single_action(
MINUTE_IN_SECONDS * 15,
time() + ( 15 * MINUTE_IN_SECONDS ),
'sf_acknowledge_remain_order',
array(
$order_id,
Expand Down

0 comments on commit 1ab14da

Please sign in to comment.