fix(nodes): report probe heartbeat persistence failures (#6207)

Co-authored-by: n0ctal <293235942+n0ctal@users.noreply.github.com>
This commit is contained in:
n0ctal
2026-08-13 15:34:37 +05:00
committed by GitHub
parent 64f4f0746c
commit 4a5f6771b3
2 changed files with 53 additions and 1 deletions
+4 -1
View File
@@ -314,7 +314,10 @@ func (a *NodeController) probe(c *gin.Context) {
} else {
patch.Status = "online"
}
_ = a.nodeService.UpdateHeartbeat(id, patch)
if err := a.nodeService.UpdateHeartbeat(id, patch); err != nil {
jsonMsg(c, I18nWeb(c, "pages.nodes.toasts.test"), err)
return
}
jsonObj(c, patch.ToUI(probeErr == nil), nil)
}