From 9f86429a1252b45c95b7c62fbaa1b82de3723997 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 05 Jan 2026 18:16:07 +0000
Subject: [PATCH] =Complete TaxonomySelector.js and TaxonomyCreator.js refactor

---
 inc/rest/routes/QueueRoutes.php |   30 ++----------------------------
 1 files changed, 2 insertions(+), 28 deletions(-)

diff --git a/inc/rest/routes/QueueRoutes.php b/inc/rest/routes/QueueRoutes.php
index 11b409d..8ea77cd 100644
--- a/inc/rest/routes/QueueRoutes.php
+++ b/inc/rest/routes/QueueRoutes.php
@@ -193,7 +193,8 @@
 			'progress_count' => intval($operation['progress_count'] ?? 0),
 			'count' => intval($operation['count'] ?? 1),
 			'retries' => intval($operation['retries'] ?? 0),
-			'data' => json_decode($operation['request_data'] ?? '{}', true)
+			'data' => json_decode($operation['request_data'] ?? '{}', true),
+			'result'	=> json_decode($operation['result']??'{}', true)
 		];
 
 		// Convert timestamps to ISO 8601 format with proper timezone
@@ -228,33 +229,6 @@
 	}
 
 	/**
-	 * Convert MySQL datetime to ISO 8601 timestamp with proper timezone
-	 */
-	protected function formatTimestamp(?string $mysql_datetime): ?string
-	{
-		if (empty($mysql_datetime)) {
-			return null;
-		}
-
-		try {
-			// Get WordPress timezone - dates are stored in this timezone
-			$wp_timezone = wp_timezone();
-
-			// Parse the datetime in WordPress timezone
-			$date = new DateTime($mysql_datetime, $wp_timezone);
-
-			// Convert to UTC for API consistency
-			$date->setTimezone(new DateTimeZone('UTC'));
-
-			// Return ISO 8601 format
-			return $date->format('c');
-
-		} catch (Exception $e) {
-			return null;
-		}
-	}
-
-	/**
 	 * Get human-readable operation title
 	 */
 	protected function getOperationTitle(string $type, array $data): string

--
Gitblit v1.10.0