Unverified Commit 44397e30 authored by takatost's avatar takatost Committed by GitHub

remove unused session store codes (#2313)

parent 883a0a0e
...@@ -66,7 +66,6 @@ class AccountService: ...@@ -66,7 +66,6 @@ class AccountService:
account.current_tenant_id = tenant_account_join.tenant_id account.current_tenant_id = tenant_account_join.tenant_id
else: else:
_create_tenant_for_account(account) _create_tenant_for_account(account)
session['workspace_id'] = account.current_tenant_id
else: else:
account.current_tenant_id = workspace_id account.current_tenant_id = workspace_id
else: else:
...@@ -76,7 +75,6 @@ class AccountService: ...@@ -76,7 +75,6 @@ class AccountService:
account.current_tenant_id = tenant_account_join.tenant_id account.current_tenant_id = tenant_account_join.tenant_id
else: else:
_create_tenant_for_account(account) _create_tenant_for_account(account)
session['workspace_id'] = account.current_tenant_id
current_time = datetime.utcnow() current_time = datetime.utcnow()
...@@ -288,7 +286,6 @@ class TenantService: ...@@ -288,7 +286,6 @@ class TenantService:
# Set the current tenant for the account # Set the current tenant for the account
account.current_tenant_id = tenant_account_join.tenant_id account.current_tenant_id = tenant_account_join.tenant_id
session['workspace_id'] = account.current_tenant.id
@staticmethod @staticmethod
def get_tenant_members(tenant: Tenant) -> List[Account]: def get_tenant_members(tenant: Tenant) -> List[Account]:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment