Wallos: Open-source, self-hostable personal subscription tracker. Visualize your recurring expenses, manage your budget, and save money.
fix: next payment date not updating for disabled subscriptions (#243)
Miguel Ribeiro75a5672de32a
diff --git a/endpoints/cronjobs/updatenextpayment.php b/endpoints/cronjobs/updatenextpayment.phpindex e7bf3ab..546939e 100644--- a/endpoints/cronjobs/updatenextpayment.php+++ b/endpoints/cronjobs/updatenextpayment.php@@ -13,7 +13,7 @@$cycles[$cycleId] = $row;}- $query = "SELECT id, next_payment, frequency, cycle FROM subscriptions WHERE inactive = 0 AND next_payment < :currentDate";+ $query = "SELECT id, next_payment, frequency, cycle FROM subscriptions WHERE next_payment < :currentDate";$stmt = $db->prepare($query);$stmt->bindValue(':currentDate', $currentDate->format('Y-m-d'));$result = $stmt->execute();diff --git a/includes/version.php b/includes/version.phpindex 9b4637d..51d8225 100644--- a/includes/version.php+++ b/includes/version.php@@ -1,3 +1,3 @@<?php- $version = "v1.17.2";+ $version = "v1.17.3";?>\ No newline at end of file