diff --git a/invenio_config_tuw/tiss/tasks.py b/invenio_config_tuw/tiss/tasks.py index afe2161b7d8b38938588e8f0eb097908b7c6aef2..31e26a0776811953ae0e75660cd96c327de958dd 100644 --- a/invenio_config_tuw/tiss/tasks.py +++ b/invenio_config_tuw/tiss/tasks.py @@ -151,6 +151,11 @@ def sync_names_from_tiss() -> dict: # if we found a match via ORCID, we update it according to the TISS data name = svc.read(identity=system_identity, id_=name_voc_id) + + # reset created & updated timestamps to their datetime/non-string + # form, to avoid breakage in the serialization + name._obj["updated"] = name._obj.updated + name._obj["created"] = name._obj.created new_name_data = update_name_data( name.data, employee, tuw_ror_aliases )