fix: ep update 不放在事务中
This commit is contained in:
parent
c2c05a5075
commit
923e812890
|
@ -61,7 +61,6 @@ class EmployeeCreateUpdateSerializer(CustomModelSerializer):
|
|||
HrmService.sync_dahua_employee(ep=instance)
|
||||
return instance
|
||||
|
||||
@transaction.atomic
|
||||
def update(self, instance, validated_data):
|
||||
id_number = validated_data['id_number']
|
||||
ret = get_info_from_id(id_number)
|
||||
|
|
Loading…
Reference in New Issue