chore: fix error message typo on update log field api (#5660)

This commit is contained in:
Kobe Cai 2024-08-09 12:38:40 +08:00 committed by GitHub
parent f031845300
commit 52199361d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2810,7 +2810,7 @@ func (aH *APIHandler) logFieldUpdate(w http.ResponseWriter, r *http.Request) {
apiErr := aH.reader.UpdateLogField(r.Context(), &field) apiErr := aH.reader.UpdateLogField(r.Context(), &field)
if apiErr != nil { if apiErr != nil {
RespondError(w, apiErr, "Failed to update filed in the DB") RespondError(w, apiErr, "Failed to update field in the DB")
return return
} }
aH.WriteJSON(w, r, field) aH.WriteJSON(w, r, field)