mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 23:09:52 +08:00
pref(api): import and export of CIType templates
pref(api): import and export of CIType templates
This commit is contained in:
@@ -394,4 +394,10 @@ class AuditCRUD(object):
|
||||
if logout_at is None:
|
||||
payload['login_at'] = datetime.datetime.now()
|
||||
|
||||
try:
|
||||
from api.lib.common_setting.employee import EmployeeCRUD
|
||||
EmployeeCRUD.update_last_login_by_uid(current_user.uid)
|
||||
except:
|
||||
pass
|
||||
|
||||
return AuditLoginLog.create(**payload).id
|
||||
|
Reference in New Issue
Block a user