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

Co-authored-by: n0ctal <293235942+n0ctal@users.noreply.github.com>
This commit is contained in:
n0ctalandn0ctal authored and GitHub committed 2026-08-13 12:34:37 +02:00 Unverified
1 parent 64f4f0746c
commit 4a5f6771b3
2 files changed
+53 -1

No files matched your search

+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)
}