Skip to content

Commit

Permalink
remove unused session store codes (#2313)
Browse files Browse the repository at this point in the history
  • Loading branch information
takatost authored Jan 31, 2024
1 parent 883a0a0 commit 44397e3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions api/services/account_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def load_user(user_id: str) -> Account:
account.current_tenant_id = tenant_account_join.tenant_id
else:
_create_tenant_for_account(account)
session['workspace_id'] = account.current_tenant_id
else:
account.current_tenant_id = workspace_id
else:
Expand All @@ -76,7 +75,6 @@ def load_user(user_id: str) -> Account:
account.current_tenant_id = tenant_account_join.tenant_id
else:
_create_tenant_for_account(account)
session['workspace_id'] = account.current_tenant_id

current_time = datetime.utcnow()

Expand Down Expand Up @@ -288,7 +286,6 @@ def switch_tenant(account: Account, tenant_id: int = None) -> None:

# Set the current tenant for the account
account.current_tenant_id = tenant_account_join.tenant_id
session['workspace_id'] = account.current_tenant.id

@staticmethod
def get_tenant_members(tenant: Tenant) -> List[Account]:
Expand Down

0 comments on commit 44397e3

Please sign in to comment.