Use new simplified uuid.NewString() syntax

This commit is contained in:
Deluan
2021-02-01 01:22:31 -05:00
parent b47ec02f02
commit 861b406575
10 changed files with 17 additions and 32 deletions
+1 -2
View File
@@ -44,8 +44,7 @@ func (r *userRepository) GetAll(options ...model.QueryOptions) (model.Users, err
func (r *userRepository) Put(u *model.User) error {
if u.ID == "" {
id, _ := uuid.NewRandom()
u.ID = id.String()
u.ID = uuid.NewString()
}
u.UpdatedAt = time.Now()
values, _ := toSqlArgs(*u)