diff --git a/src/redturtle/prenotazioni/adapters/booker.py b/src/redturtle/prenotazioni/adapters/booker.py index ba578166..4eaea103 100644 --- a/src/redturtle/prenotazioni/adapters/booker.py +++ b/src/redturtle/prenotazioni/adapters/booker.py @@ -65,8 +65,7 @@ def _validate_user_limit(self, fiscalcode): def search_future_bookings_by_fiscalcode(self, fiscalcode): """Find all the future bookings registered for the same fiscalcode""" result = [] - - for booking in api.content.find( + for booking in api.portal.get_tool("portal_catalog").unrestrictedSearchResults( portal_type="Prenotazione", fiscalcode=fiscalcode, path={"query": "/".join(self.context.getPhysicalPath())},