Return message field on SambaPOS test success to confirm both SQL + GraphQL connected

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-14 13:55:32 +00:00
parent 6dc5df45e5
commit 37c122dc99

View file

@ -185,6 +185,7 @@ export async function integrationRoutes(app) {
if (!gqlRes.ok) throw new Error(`GraphQL request failed (${gqlRes.status})`) if (!gqlRes.ok) throw new Error(`GraphQL request failed (${gqlRes.status})`)
} catch (e) { errors.push(`GraphQL: ${e.message}`) } } catch (e) { errors.push(`GraphQL: ${e.message}`) }
if (errors.length) throw new Error(errors.join(' | ')) 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}` }) else return reply.status(400).send({ error: `No test available for ${req.params.slug}` })
return { ok: true } return { ok: true }