mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: pluralize table names (#463)
This commit is contained in:
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user