Allow to disable notifications

This commit is contained in:
Sokratis
2024-02-23 15:29:11 +01:00
committed by GitHub
parent d2671b0276
commit 91e53a48e4
19 changed files with 79 additions and 9 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
$cycles[$cycleId] = $row;
}
$query = "SELECT id, next_payment, frequency, cycle FROM subscriptions WHERE next_payment < :currentDate";
$query = "SELECT id, next_payment, frequency, cycle FROM subscriptions WHERE inactive = 0 AND next_payment < :currentDate";
$stmt = $db->prepare($query);
$stmt->bindValue(':currentDate', $currentDate->format('Y-m-d'));
$result = $stmt->execute();