backend: fixed wrong error codes
This commit is contained in:
@@ -30,7 +30,7 @@ func HandleValidationError(c *gin.Context, err error) {
|
||||
}
|
||||
} else {
|
||||
validationErrors = append(validationErrors, gin.H{
|
||||
"field": "general",
|
||||
"field": "server.general",
|
||||
"key": "server.error.invalid_json",
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user