From fff721dd185f5b97f7ae7a6e64189e55887ff590 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 05 Jul 2026 18:36:57 +0000
Subject: [PATCH] =Cleaning up the Square integration (still a bit more to do yet). Also majorly overhauled /rest/ files to ignore a rest request 'user' paramater, and rely on get_current_user_id() instead.
---
assets/js/concise/Queue.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/assets/js/concise/Queue.js b/assets/js/concise/Queue.js
index 2b8d3b6..e1f1a04 100644
--- a/assets/js/concise/Queue.js
+++ b/assets/js/concise/Queue.js
@@ -790,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