api specs
This commit is contained in:
@@ -310,8 +310,8 @@ func (a *App) handleUpdateScore(c echo.Context) error {
|
||||
if err := c.Bind(&req); err != nil {
|
||||
return writeError(c, http.StatusBadRequest, "invalid request body")
|
||||
}
|
||||
if req.Score < 0 || req.Score > 9999 {
|
||||
return writeError(c, http.StatusBadRequest, "score must be between 0 and 9999")
|
||||
if req.Score < 0 || req.Score > 100 {
|
||||
return writeError(c, http.StatusBadRequest, "score must be between 0 and 100")
|
||||
}
|
||||
|
||||
res, err := a.db.Exec(`
|
||||
|
||||
Reference in New Issue
Block a user