We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4be5387 commit ffccb76Copy full SHA for ffccb76
cmd/main.go
@@ -406,7 +406,13 @@ func main() {
406
if nodeStatusMsg.BlockAssemblyDetails != nil {
407
if jsonBytes, err := json.Marshal(nodeStatusMsg.BlockAssemblyDetails); err == nil {
408
blockAssemblyJSON = string(jsonBytes)
409
+ } else {
410
+ // If marshaling fails, use empty JSON object
411
+ blockAssemblyJSON = "{}"
412
}
413
414
+ // Use empty JSON object instead of empty string for NULL values
415
416
417
418
if err := batchService.AddNodeStatus(model.NodeStatusPG{
0 commit comments