Skip to content

Commit

Permalink
use correct invitation id
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jan 25, 2025
1 parent e9e79bb commit dc203cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion agixt/MagicalAuth.py
Original file line number Diff line number Diff line change
Expand Up @@ -1740,7 +1740,9 @@ def create_invitation(self, invitation: InvitationCreate) -> InvitationResponse:
email=invitation.email, otp=pyotp.TOTP(user.mfa_token).now()
)
if company_id is not None:
default_agent["settings"]["company_id"] = str(company_id)
default_agent["settings"]["company_id"] = str(
invitation.company_id
)
agixt.add_agent(
agent_name=company.agent_name,
settings=default_agent["settings"],
Expand Down

0 comments on commit dc203cb

Please sign in to comment.