fixed change order
Some checks failed
ci/woodpecker/push/fx_ingestor Pipeline is pending
ci/woodpecker/push/fx_oracle Pipeline is pending
ci/woodpecker/push/ledger Pipeline is pending
ci/woodpecker/push/nats Pipeline is pending
ci/woodpecker/push/notification Pipeline is pending
ci/woodpecker/push/payments_orchestrator Pipeline is pending
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/chain_gateway Pipeline failed
ci/woodpecker/push/bump_version unknown status
ci/woodpecker/push/frontend Pipeline failed
Some checks failed
ci/woodpecker/push/fx_ingestor Pipeline is pending
ci/woodpecker/push/fx_oracle Pipeline is pending
ci/woodpecker/push/ledger Pipeline is pending
ci/woodpecker/push/nats Pipeline is pending
ci/woodpecker/push/notification Pipeline is pending
ci/woodpecker/push/payments_orchestrator Pipeline is pending
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/chain_gateway Pipeline failed
ci/woodpecker/push/bump_version unknown status
ci/woodpecker/push/frontend Pipeline failed
This commit is contained in:
@@ -239,12 +239,6 @@ func (s *service) JoinOrganization(
|
|||||||
s.logger.Debug("Account is already a member", mzap.StorableRef(org), mzap.StorableRef(account))
|
s.logger.Debug("Account is already a member", mzap.StorableRef(org), mzap.StorableRef(account))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
org.Members = append(org.Members, account.ID)
|
|
||||||
if err := s.orgDB.Update(ctx, *account.GetID(), org); err != nil {
|
|
||||||
s.logger.Warn("Failed to update organization members list",
|
|
||||||
zap.Error(err), mzap.StorableRef(account), mzap.StorableRef(org))
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
role := &model.Role{
|
role := &model.Role{
|
||||||
DescriptionRef: roleDescID,
|
DescriptionRef: roleDescID,
|
||||||
@@ -256,6 +250,13 @@ func (s *service) JoinOrganization(
|
|||||||
mzap.StorableRef(org), mzap.ObjRef("role_description_ref", roleDescID))
|
mzap.StorableRef(org), mzap.ObjRef("role_description_ref", roleDescID))
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
org.Members = append(org.Members, account.ID)
|
||||||
|
if err := s.orgDB.Update(ctx, *account.GetID(), org); err != nil {
|
||||||
|
s.logger.Warn("Failed to update organization members list",
|
||||||
|
zap.Error(err), mzap.StorableRef(account), mzap.StorableRef(org))
|
||||||
|
return err
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user