Unverified Commit d8672796 authored by takatost's avatar takatost Committed by GitHub

revert: remove unused session store codes (#2329)

parent 5929e840
...@@ -66,6 +66,7 @@ class AccountService: ...@@ -66,6 +66,7 @@ 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:
...@@ -75,6 +76,7 @@ class AccountService: ...@@ -75,6 +76,7 @@ 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()
...@@ -286,6 +288,7 @@ class TenantService: ...@@ -286,6 +288,7 @@ 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