fixup! fixup! refactor(api): moving organization API resourced based

added updateOrganization
This commit is contained in:
Iraq Jaber
2025-04-25 14:30:40 +02:00
parent 86f1154741
commit 56bacaf809
6 changed files with 111 additions and 15 deletions

View File

@@ -98,7 +98,7 @@ func (s *Server) AddOrg(ctx context.Context, req *mgmt_pb.AddOrgRequest) (*mgmt_
func (s *Server) UpdateOrg(ctx context.Context, req *mgmt_pb.UpdateOrgRequest) (*mgmt_pb.UpdateOrgResponse, error) {
ctxData := authz.GetCtxData(ctx)
org, err := s.command.ChangeOrg(ctx, ctxData.OrgID, req.Name)
org, err := s.command.UpdateOrg(ctx, ctxData.OrgID, req.Name)
if err != nil {
return nil, err
}