fix issues in groups members management
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 1m26s
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 1m26s
This commit is contained in:
@@ -57,6 +57,20 @@ func (s *ServicesHandler) GetGroupsMemberMap(id string) (groups map[string]any,
|
||||
return
|
||||
}
|
||||
|
||||
func (s *ServicesHandler) GetGroup(groupid string) (*storage.Group, error) {
|
||||
groupresp, err := s.GRPC.GroupsManagement.GetGroup(context.TODO(), &groupsmanagement.GetGroupRequest{
|
||||
Id: groupid,
|
||||
Namespace: "parcoursmob_organizations",
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
group := groupresp.Group.ToStorageType()
|
||||
|
||||
return &group, nil
|
||||
}
|
||||
|
||||
// Enriched types
|
||||
|
||||
type GroupsManagementGroup struct {
|
||||
|
||||
Reference in New Issue
Block a user