mirror of
https://github.com/langgenius/dify.git
synced 2026-10-28 03:35:04 +08:00
chore: clean Db session from service (#38227)
Co-authored-by: chariri <w@chariri.moe> Co-authored-by: WH-2099 <wh2099@pm.me>
This commit is contained in:
co-authored by
chariri
WH-2099
parent
ee0068eed4
commit
68d8328b9c
@@ -181,7 +181,7 @@ class InstalledAppsListApi(Resource):
|
||||
|
||||
if current_user.current_tenant is None:
|
||||
raise ValueError("current_user.current_tenant must not be None")
|
||||
current_user.role = TenantService.get_user_role(current_user, current_user.current_tenant, session=db.session)
|
||||
current_user.role = TenantService.get_user_role(current_user, current_user.current_tenant, session=db.session())
|
||||
installed_app_list: list[dict[str, Any]] = []
|
||||
for installed_app, app_model in installed_apps:
|
||||
installed_app_list.append(
|
||||
|
||||
Reference in New Issue
Block a user