append events without return value

This commit is contained in:
adlerhurst
2020-11-25 14:12:44 +01:00
parent f8028f07d0
commit f6cdcee77a
27 changed files with 73 additions and 78 deletions
@@ -37,10 +37,7 @@ func ChangeEventFromExisting(
roles ...string,
) (*ChangedEvent, error) {
change := &ChangedEvent{
BaseEvent: *base,
UserID: current.UserID,
}
change := NewChangedEvent(base, current.userID)
sort.Strings(current.Roles)
sort.Strings(roles)