From a6413da67a4579866f0fd0323ddb23a7b6b9654a Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 18 Sep 2026 17:00:53 +0000
Subject: [PATCH] =Cleaning up the Integrations setup a bit, started the Helcim integration work too
---
inc/rest/routes/NotificationsRoutes.php | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/inc/rest/routes/NotificationsRoutes.php b/inc/rest/routes/NotificationsRoutes.php
index ac1ea1a..3d6d1bb 100644
--- a/inc/rest/routes/NotificationsRoutes.php
+++ b/inc/rest/routes/NotificationsRoutes.php
@@ -610,10 +610,9 @@
} catch (Exception $e) {
global $wpdb;
$wpdb->query('ROLLBACK');
- $this->logError('markContentNotificationRead exception', [
+ $this->logError($e->getMessage(),'markContentNotificationRead', [
'seen_id' => $seen_id,
'user_id' => $user_id,
- 'error' => $e->getMessage()
]);
return [
'success' => false,
@@ -1154,8 +1153,7 @@
]);
} catch (Exception $e) {
// Don't fail the request if metrics tracking fails
- $this->logError('trackMetrics failed', [
- 'error' => $e->getMessage(),
+ $this->logError($e->getMessage(),'trackMetrics', [
'user_id' => $user_id,
'action' => $action
]);
--
Gitblit v1.10.0