Notifications parameters and delete members
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m54s
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m54s
This commit is contained in:
@@ -104,6 +104,21 @@ func (s GroupsManagementServerImpl) Unsubscribe(ctx context.Context, req *Unsubs
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (s GroupsManagementServerImpl) UpdateGroup(ctx context.Context, req *UpdateGroupRequest) (*UpdateGroupResponse, error) {
|
||||
g := req.Group.ToStorageType()
|
||||
group, err := s.handler.UpdateGroup(g)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return nil, status.Errorf(codes.Internal, "group update failed : %v", err)
|
||||
}
|
||||
response, err := GroupFromStorageType(group)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return nil, status.Errorf(codes.Internal, "issue while retrieving group : %v", err)
|
||||
}
|
||||
return &UpdateGroupResponse{Group: response}, nil
|
||||
}
|
||||
|
||||
func (s GroupsManagementServerImpl) DeleteGroup(ctx context.Context, req *DeleteGroupRequest) (*DeleteGroupResponse, error) {
|
||||
err := s.handler.DeleteGroup(req.Id)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user