Added missing require date and added repository query_for_each