Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
Snickser committed Jul 17, 2024
1 parent e56f4b1 commit 1c577c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classes/task/recurrent_payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public function get_name() {
*/
public function execute() {
global $DB, $CFG;

mtrace('Start');

// Stage One.
Expand Down Expand Up @@ -104,7 +105,7 @@ public function execute() {
}

// Stage Two.
$ctime = strtotime("+1hour");
$ctime = strtotime(date('d-M-Y H:00',strtotime("+1hour")));

$yookassatx = $DB->get_records_sql('SELECT * FROM {paygw_yookassa} WHERE (success=1 OR success=3) ' .
'AND recurrent>0 AND recurrent < ?', [ $ctime ]);
Expand Down Expand Up @@ -224,6 +225,7 @@ public function execute() {
);
}
}

mtrace('End');
}
}

0 comments on commit 1c577c5

Please sign in to comment.