1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

chore: remove cleanup functionality

chore: minor code changes
This commit is contained in:
Ferdinand Mütsch
2020-11-06 14:07:07 +01:00
parent cb8f68df82
commit e6a04cc76d
6 changed files with 15 additions and 47 deletions

View File

@@ -54,7 +54,7 @@ func (r *UserRepository) InsertOrGet(user *models.User) (*models.User, bool, err
}
func (r *UserRepository) Update(user *models.User) (*models.User, error) {
result := r.db.Model(&models.User{}).Updates(user)
result := r.db.Model(user).Updates(user)
if err := result.Error; err != nil {
return nil, err
}