mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 17:38:04 +08:00
fix: query error
This commit is contained in:
@ -183,7 +183,7 @@ class AccountService:
|
||||
TenantService.create_owner_tenant_if_not_exist(account=account)
|
||||
else:
|
||||
# SElF_HOST 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
|
||||
db.session.commit()
|
||||
|
||||
Reference in New Issue
Block a user