fix: next payment date not updating for disabled subscriptions (#243)

This commit is contained in:
Miguel Ribeiro 2024-03-20 13:50:20 +01:00 committed by GitHub
parent d47a0e6f29
commit 75a5672de3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -1,3 +1,3 @@
<?php
$version = "v1.17.2";
$version = "v1.17.3";
?>