diff --git a/astropylibrarian/workflows/expirerecords.py b/astropylibrarian/workflows/expirerecords.py index 6dd8e6d..74e6b66 100644 --- a/astropylibrarian/workflows/expirerecords.py +++ b/astropylibrarian/workflows/expirerecords.py @@ -36,7 +36,9 @@ async def expire_old_records( attributes_to_highlight=[], ) old_object_ids: List[str] = [] - for r in await algolia_index.browse_objects(obj).hits: + # for r in await algolia_index.browse_objects(obj).hits: + records = await algolia_index.browse_objects(obj) + for r in records.hits: # Double check that we're deleting the right things. if r.root_url != root_url: logger.warning("root_url does not match: %s", r.root_url)