Skip to content

Commit

Permalink
remote entities: fix sync
Browse files Browse the repository at this point in the history
* Gezs last updated remote entity in `get_entity` function.

Co-Authored-by: Peter Weber <[email protected]>
  • Loading branch information
rerowep committed Feb 17, 2025
1 parent 15ff4ea commit 81deaec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rero_ils/modules/entities/remote_entities/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def get_entity(cls, ref_type, ref_pid):
query = (
RemoteEntitiesSearch()
.params(preserve_order=True)
.sort({"_created": {"order": "desc"}})
.sort({"_updated": {"order": "desc"}})
.filter(es_filter)
)
with contextlib.suppress(StopIteration):
Expand Down

0 comments on commit 81deaec

Please sign in to comment.