Wallos: Open-source, self-hostable personal subscription tracker. Visualize your recurring expenses, manage your budget, and save money.
fix: notifications would also be sent x days after subscription was due in some cases
Miguel Ribeiroba912a37d1a0
diff --git a/endpoints/cronjobs/sendnotifications.php b/endpoints/cronjobs/sendnotifications.phpindex bd31bd7..17bb322 100644--- a/endpoints/cronjobs/sendnotifications.php+++ b/endpoints/cronjobs/sendnotifications.php@@ -229,7 +229,8 @@ while ($userToNotify = $usersToNotify->fetchArray(SQLITE3_ASSOC)) {$difference += 1;}- if ($difference === $daysToCompare) {+ if ($difference === $daysToCompare && $nextPaymentDate >= $currentDate) {+ echo "Subscription: " . $rowSubscription['name'] . "<br />";echo "Next payment date: " . $nextPaymentDate->format('Y-m-d') . "<br />";echo "Current date: " . $currentDate->format('Y-m-d') . "<br />";echo "Difference: " . $difference . "<br />";diff --git a/includes/version.php b/includes/version.phpindex b8370f1..63e0c16 100644--- a/includes/version.php+++ b/includes/version.php@@ -1,3 +1,3 @@<?php-$version = "v2.48.0";+$version = "v2.48.1";?>\ No newline at end of file