KEYCLOAK-16033 Revert Jpa*EventQuery to getResultList

This commit is contained in:
Martin Kanis 2020-10-22 11:17:29 +02:00 committed by Hynek Mlnařík
parent 74b5143c5e
commit f5c52345fc
2 changed files with 2 additions and 2 deletions

View file

@ -160,7 +160,7 @@ public class JpaAdminEventQuery implements AdminEventQuery {
query.setMaxResults(maxResults);
}
return closing(query.getResultStream().map(JpaEventStoreProvider::convertAdminEvent));
return closing(query.getResultList().stream().map(JpaEventStoreProvider::convertAdminEvent));
}
}

View file

@ -134,7 +134,7 @@ public class JpaEventQuery implements EventQuery {
}
return closing(query.getResultStream().map(JpaEventStoreProvider::convertEvent));
return closing(query.getResultList().stream().map(JpaEventStoreProvider::convertEvent));
}
}