From 37c122dc9971d0dc84e8e199c35bb200c437b7ea Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Tue, 14 Jul 2026 13:55:32 +0000 Subject: [PATCH] Return message field on SambaPOS test success to confirm both SQL + GraphQL connected Co-Authored-By: Claude Sonnet 4.6 --- src/routes/integrations.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/integrations.js b/src/routes/integrations.js index f1381a7..056a45e 100644 --- a/src/routes/integrations.js +++ b/src/routes/integrations.js @@ -185,6 +185,7 @@ export async function integrationRoutes(app) { if (!gqlRes.ok) throw new Error(`GraphQL request failed (${gqlRes.status})`) } catch (e) { errors.push(`GraphQL: ${e.message}`) } if (errors.length) throw new Error(errors.join(' | ')) + return { ok: true, message: 'SQL + GraphQL connected' } } else return reply.status(400).send({ error: `No test available for ${req.params.slug}` }) return { ok: true }