mirror of
https://github.com/veops/cmdb.git
synced 2025-08-07 13:20:33 +08:00
fix(api): common edit department return (#359)
fix(api): common edit department return (#359)
This commit is contained in:
@@ -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))
|
||||
|
||||
|
Reference in New Issue
Block a user