From 3e7829b735f77fe9461769e67db4a276b84fdff5 Mon Sep 17 00:00:00 2001 From: Christian Richter Date: Fri, 16 Sep 2022 15:22:45 +0200 Subject: [PATCH] [WIP] fix SpacesShared Signed-off-by: Christian Richter --- services/notifications/pkg/service/service.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/notifications/pkg/service/service.go b/services/notifications/pkg/service/service.go index 85bbf55fc8d..dc23e38867a 100644 --- a/services/notifications/pkg/service/service.go +++ b/services/notifications/pkg/service/service.go @@ -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) } @@ -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, })