From c68aefb847b09daa0697de7684d3451e2e68ce1e Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Thu, 09 Jul 2026 23:10:23 +0000
Subject: [PATCH] =Refactor of Integrations.php to be a bit more useful with a suite of methods for create, update, delete back and forths for integrations where sharing is enabled. Also considering a single instance with a connect method to connect as the site (no user) vs connecting as an individual user - rather than recreating instances for every user.

---
 assets/js/concise/Queue.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/assets/js/concise/Queue.js b/assets/js/concise/Queue.js
index 0290aa9..e1f1a04 100644
--- a/assets/js/concise/Queue.js
+++ b/assets/js/concise/Queue.js
@@ -409,6 +409,7 @@
 	 OPERATIONS
 	****************************************************************************/
 	addToQueue(operation) {
+		console.log(operation, 'Adding to queue:');
 		const item = {
 			id: `u${this.user}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}`,
 			endpoint: null,
@@ -789,7 +790,8 @@
 			this.ui.refresh.button.classList.add('fetching');
 			this.store.clearCache();
 			let response = await this.store.fetch();
-			if (response.status === 429) {
+
+			if (Object.hasOwn(response, 'status') && response.status === 429) {
 				console.log('Too many requests. Waiting 30 seconds');
 				this.stopPolling();
 				this.startCountdown(30, () => this.runPollCycle());

--
Gitblit v1.10.0