Skip to content

Commit

Permalink
🐛 fix unused
Browse files Browse the repository at this point in the history
  • Loading branch information
pikachu0310 committed Sep 30, 2024
1 parent bd3de4f commit 476ac58
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions repository/gorm/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,11 @@ func (r *userRepository) UpdateUser(id uuid.UUID, args repository.UpdateUserArgs
}

var (
u model.User
activate bool
deactivate bool
changed bool
count int
u model.User
activate bool
//deactivate bool
changed bool
count int
)
err := r.db.Transaction(func(tx *gorm.DB) error {
if err := tx.Preload("Profile").First(&u, model.User{ID: id}).Error; err != nil {
Expand All @@ -243,7 +243,7 @@ func (r *userRepository) UpdateUser(id uuid.UUID, args repository.UpdateUserArgs
case model.UserAccountStatusActive.Int():
activate = true
case model.UserAccountStatusDeactivated.Int():
deactivate = true
//deactivate = true
}
}
if args.IconFileID.Valid {
Expand Down

0 comments on commit 476ac58

Please sign in to comment.