remove unused session store codes (#2313)

This commit is contained in:
takatost 2024-01-31 15:30:35 +08:00 committed by GitHub
parent 883a0a0e6a
commit 44397e3062
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,7 +66,6 @@ class AccountService:
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:
@ -76,7 +75,6 @@ class AccountService:
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()
@ -288,7 +286,6 @@ class TenantService:
# 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]: