From 3c42801b213bfecd5fb8cc48949940e43e5cd218 Mon Sep 17 00:00:00 2001 From: "hu.sima" Date: Wed, 3 Jan 2024 15:40:33 +0800 Subject: [PATCH] fix(api): common edit department return --- cmdb-api/api/lib/common_setting/department.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdb-api/api/lib/common_setting/department.py b/cmdb-api/api/lib/common_setting/department.py index fe8c782..2795d5f 100644 --- a/cmdb-api/api/lib/common_setting/department.py +++ b/cmdb-api/api/lib/common_setting/department.py @@ -255,7 +255,7 @@ class DepartmentCRUD(object): return abort(400, ErrFormat.acl_update_role_failed.format(str(e))) try: - existed.update(**kwargs) + return existed.update(**kwargs) except Exception as e: return abort(400, str(e))