fix(send): send to known LIDs passed as phone numbers; expose version
Docker - Build e Publicacao / Build, Scan e Publicacao (push) Successful in 2m28s
CI - Validacao Go / Validar Codigo e Testes (push) Successful in 3m58s
Docker - Promover latest / Promover release para latest (push) Successful in 4m39s

Integrations that store the contact's LID as its number (255284433936406)
failed with 'no LID found for [email protected]'. When the number
is not a registered phone and the instance's LID store maps it to a phone
number, send to <number>@lid instead.

GET /server/ok now also returns the running version, so a deployment can be
checked without reading the startup log.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
jfengandClaude Opus 5.5 committed 2026-11-11 08:15:58 -03:00
1 parent c9511a636e
commit b140fdb390
6 files changed
+91 -4

No files matched your search

+5 -3
View File
@@ -7,15 +7,17 @@ type ServerHandler interface {
}
type serverHandler struct {
version string
}
// ServerOk implements ServerHandler.
func (s *serverHandler) ServerOk(ctx *gin.Context) {
ctx.JSON(200, gin.H{
"status": "ok",
"status": "ok",
"version": s.version,
})
}
func NewServerHandler() ServerHandler {
return &serverHandler{}
func NewServerHandler(version string) ServerHandler {
return &serverHandler{version: version}
}