Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

remove unused session store codes (#2313)

takatost44397e306246
diff --git a/api/services/account_service.py b/api/services/account_service.py
index 18f72f9ef7f..f921566d363 100644
--- a/api/services/account_service.py
+++ b/api/services/account_service.py
@@ -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]: