Skip to content

Commit

Permalink
Send single member id
Browse files Browse the repository at this point in the history
Signed-off-by: WashingtonKK <[email protected]>
  • Loading branch information
WashingtonKK committed Mar 14, 2024
1 parent 7e42e72 commit 771043d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions internal/groups/events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var (

type assignEvent struct {
operation string
memberID []string
memberID string
groupID string
createdAt time.Time
}
Expand All @@ -57,7 +57,7 @@ func (cge assignEvent) Encode() (map[string]interface{}, error) {

type unassignEvent struct {
operation string
memberID []string
memberID string
groupID string
createdAt time.Time
}
Expand Down
4 changes: 2 additions & 2 deletions internal/groups/events/streams.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (es eventStore) Assign(ctx context.Context, token, groupID, relation, membe
event := assignEvent{
operation: "group.assign",
groupID: groupID,
memberID: memberIDs,
memberID: memberIDs[0],
createdAt: time.Now(),
}

Expand All @@ -167,7 +167,7 @@ func (es eventStore) Unassign(ctx context.Context, token, groupID, relation, mem
event := unassignEvent{
operation: "group.unassign",
groupID: groupID,
memberID: memberIDs,
memberID: memberIDs[0],
createdAt: time.Now(),
}

Expand Down

0 comments on commit 771043d

Please sign in to comment.