update data contract for users

This commit is contained in:
Hayden 2022-08-30 16:44:49 -08:00
parent a9f53a4671
commit 1107904f47
2 changed files with 11 additions and 16 deletions

View file

@ -30,7 +30,7 @@ type UserCreate struct {
GroupID uuid.UUID `json:"groupID"`
}
func (u *UserCreate) Validate() error {
func (u UserCreate) Validate() error {
if u.Name == "" {
return ErrNameEmpty
}