Skip to content

Commit 769dee0

Browse files
committed
refactor: update credit reset method on version change
1 parent b3b6686 commit 769dee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/Engine/Admin/PerformanceMonitoring/Subscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ public function maybe_cancel_automatic_retest_job() {
520520
*/
521521
public function on_update_reset_credit( $new_version, $old_version ) {
522522
if ( version_compare( $old_version, '3.20.0', '<' ) ) {
523-
$this->plan->reset_credit();
523+
$this->reset_credit_monthly();
524524
}
525525
}
526526
}

0 commit comments

Comments
 (0)