Skip to content

Commit

Permalink
[WIP] fix SpacesShared
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Richter <[email protected]>
  • Loading branch information
dragonchaser committed Sep 16, 2022
1 parent 535fa79 commit 3e7829b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/notifications/pkg/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ func (s eventsNotifier) Run() error {
case evt := <-s.events:
go func() {
switch e := evt.(type) {
case events.SpaceCreated:
s.handleSpaceCreated(e)
case events.SpaceShared:
s.handleSpaceShared(e)
case events.ShareCreated:
s.handleShareCreated(e)
}
Expand All @@ -71,7 +71,7 @@ func (s eventsNotifier) Run() error {
}
}

func (s eventsNotifier) handleSpaceCreated(e events.SpaceCreated) {
func (s eventsNotifier) handleSpaceShared(e events.SpaceShared) {
userResponse, err := s.gwClient.GetUser(context.Background(), &userv1beta1.GetUserRequest{
UserId: e.Owner,
})
Expand Down

0 comments on commit 3e7829b

Please sign in to comment.