chore: pluralize table names (#463)

This commit is contained in:
Colin Adler
2022-03-17 18:10:46 -05:00
committed by GitHub
parent edd8345658
commit 706e60bb3b
21 changed files with 341 additions and 249 deletions
+2 -2
View File
@@ -15,14 +15,14 @@ func parseUUID(rw http.ResponseWriter, r *http.Request, param string) (uuid.UUID
rawID := chi.URLParam(r, param)
if rawID == "" {
httpapi.Write(rw, http.StatusBadRequest, httpapi.Response{
Message: fmt.Sprintf("%s must be provided", param),
Message: fmt.Sprintf("%q must be provided", param),
})
return uuid.UUID{}, false
}
parsed, err := uuid.Parse(rawID)
if err != nil {
httpapi.Write(rw, http.StatusBadRequest, httpapi.Response{
Message: fmt.Sprintf("%s must be a uuid", param),
Message: fmt.Sprintf("%q must be a uuid", param),
})
return uuid.UUID{}, false
}