Skip to content

Commit

Permalink
activateのときもupdateイベントを発行するように
Browse files Browse the repository at this point in the history
  • Loading branch information
mehm8128 committed Jan 23, 2024
1 parent b47d3ae commit 00d504c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion repository/gorm/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ func (r *userRepository) UpdateUser(id uuid.UUID, args repository.UpdateUserArgs
if id == uuid.Nil {
return repository.ErrNilID
}
var u model.User

var (
u model.User
activate bool
deactivate bool
changed bool
Expand Down Expand Up @@ -328,6 +328,7 @@ func (r *userRepository) UpdateUser(id uuid.UUID, args repository.UpdateUserArgs
"user": &u,
},
})
fallthrough
default:
r.hub.Publish(hub.Message{
Name: event.UserUpdated,
Expand Down

0 comments on commit 00d504c

Please sign in to comment.