From 0571613012a534a8a2942d4f0572ca54ea23d670 Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Tue, 7 Jul 2026 15:38:09 +0000 Subject: [PATCH] Fix locations endpoint base URL default: my.workforce.com not my.tanda.co Co-Authored-By: Claude Sonnet 4.6 --- src/routes/integrations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/integrations.js b/src/routes/integrations.js index 3bd0ef0..0328826 100644 --- a/src/routes/integrations.js +++ b/src/routes/integrations.js @@ -118,7 +118,7 @@ export async function integrationRoutes(app) { if (!row?.enabled) return reply.status(400).send({ error: 'Workforce integration not enabled' }) const creds = { ...row.config, ...decryptSecrets(row) } if (!creds.bearer_token) return reply.status(400).send({ error: 'Workforce bearer token not configured' }) - const baseUrl = creds.base_url || 'https://my.tanda.co' + const baseUrl = creds.base_url || 'https://my.workforce.com' // /api/v2/locations list may be billing-locked — get unique IDs from teams then fetch each individually const teams = []