From bf6eeb76cbed769d8a704689eff34f1f65da7c8f Mon Sep 17 00:00:00 2001 From: Miguel Ribeiro Date: Mon, 10 Jun 2024 21:29:37 +0200 Subject: [PATCH] fix: update exchange cron only working for one user --- endpoints/cronjobs/updateexchange.php | 3 +-- includes/version.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/endpoints/cronjobs/updateexchange.php b/endpoints/cronjobs/updateexchange.php index b77e699bf..999e70459 100644 --- a/endpoints/cronjobs/updateexchange.php +++ b/endpoints/cronjobs/updateexchange.php @@ -88,7 +88,6 @@ $stmt->bindParam(':userId', $userId, SQLITE3_INTEGER); $result = $stmt->execute(); - $db->close(); echo "Rates updated successfully!
"; } } else { @@ -99,7 +98,7 @@ echo "Exchange rates update skipped. No fixer.io api key provided
"; $apiKey = null; } - } + $db->close(); ?> \ No newline at end of file diff --git a/includes/version.php b/includes/version.php index 514e9a31f..3b21718a7 100644 --- a/includes/version.php +++ b/includes/version.php @@ -1,3 +1,3 @@