mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 01:48:04 +08:00
fix: tenant search
This commit is contained in:
@ -680,7 +680,7 @@ class RegisterService:
|
||||
tenant_was_created.send(tenant)
|
||||
else:
|
||||
# SELF_HOSTED just have one tenant
|
||||
tenant = Tenant.query.filter_by(id=1).first()
|
||||
tenant = Tenant.query.first()
|
||||
TenantService.create_tenant_member(tenant, account, role="user")
|
||||
account.current_tenant = tenant
|
||||
|
||||
|
||||
Reference in New Issue
Block a user