Skip to content

Commit

Permalink
Change unassign event name
Browse files Browse the repository at this point in the history
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
  • Loading branch information
WashingtonKK authored and rodneyosodo committed Mar 18, 2024
1 parent ac741fe commit a335e41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/groups/events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const (
groupListMemberships = groupPrefix + "list_by_user"
groupRemove = groupPrefix + "remove"
groupAssign = groupPrefix + "assign"
groupUnassign = groupPrefix + "unassign"
)

var (
Expand Down Expand Up @@ -64,7 +65,7 @@ type unassignEvent struct {

func (cge unassignEvent) Encode() (map[string]interface{}, error) {
val := map[string]interface{}{
"operation": groupAssign,
"operation": groupUnassign,
"member_id": cge.memberID,
"group_id": cge.groupID,
"created_at": cge.createdAt,
Expand Down

0 comments on commit a335e41

Please sign in to comment.