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/managers/queue/executors/ContentExecutor.php |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/inc/managers/queue/executors/ContentExecutor.php b/inc/managers/queue/executors/ContentExecutor.php
index 562a004..5d07be0 100644
--- a/inc/managers/queue/executors/ContentExecutor.php
+++ b/inc/managers/queue/executors/ContentExecutor.php
@@ -3,6 +3,7 @@
 
 use DateTime;
 use JVBase\managers\queue\{Executor, Operation, Progress, Result};
+use JVBase\inc\managers\ErrorHelper;
 use JVBase\managers\Errors;
 use JVBase\managers\Roles;
 use JVBase\meta\Meta;
@@ -20,6 +21,7 @@
  */
 final class ContentExecutor implements Executor
 {
+	use ErrorHelper;
 	private const HANDLED_TYPES = [
 		'content_update',
 //		'batch_creation',
@@ -45,15 +47,11 @@
 			};
 
 		} catch (Exception $e) {
-			Errors::getInstance()->log(
-				'[ContentExecutor]:execute',
-				$e->getMessage(),
-				[
-					'operation_id'   => $operation->id,
-					'operation_type' => $operation->type,
-					'user_id'        => $operation->userId,
-				]
-			);
+			$this->logError($e->getMessage(), 'execute', [
+				'operation_id'   => $operation->id,
+				'operation_type' => $operation->type,
+				'user_id'        => $operation->userId,
+			]);
 
 			return new Result(
 				outcome: 'failed',

--
Gitblit v1.10.0