fix: next payment date not updating for disabled subscriptions (#243)
This commit is contained in:
parent
d47a0e6f29
commit
75a5672de3
@ -13,7 +13,7 @@
|
|||||||
$cycles[$cycleId] = $row;
|
$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 = $db->prepare($query);
|
||||||
$stmt->bindValue(':currentDate', $currentDate->format('Y-m-d'));
|
$stmt->bindValue(':currentDate', $currentDate->format('Y-m-d'));
|
||||||
$result = $stmt->execute();
|
$result = $stmt->execute();
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
<?php
|
<?php
|
||||||
$version = "v1.17.2";
|
$version = "v1.17.3";
|
||||||
?>
|
?>
|
||||||
Loading…
Reference in New Issue
Block a user