Fix JSON marshaling bug

This commit is contained in:
2023-11-21 04:16:05 +08:00
parent 0bb90303cb
commit f6bfbca1fd

View File

@@ -199,7 +199,7 @@ func main() {
http.Error(w, result.Errors[0].Error(), 500)
return
}
rJSON, _ := json.MarshalIndent(result, "", " ")
rJSON, _ := json.MarshalIndent(result.Data, "", " ")
w.Write(rJSON)
})