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:
parent
6dc5df45e5
commit
37c122dc99
1 changed files with 1 additions and 0 deletions
|
|
@ -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 }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue