From 11c253ef0d77ceef424aedbe1c66dcceb93eeeb1 Mon Sep 17 00:00:00 2001 From: alexsilva <alexandre.b.silva@cgi.com> Date: Wed, 24 May 2023 09:35:16 +0100 Subject: [PATCH] fix(gate): Bridge Dummy Pagination changes --- .../com/catenax/bpdm/bridge/dummy/service/SyncService.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bpdm-bridge-dummy/src/main/kotlin/com/catenax/bpdm/bridge/dummy/service/SyncService.kt b/bpdm-bridge-dummy/src/main/kotlin/com/catenax/bpdm/bridge/dummy/service/SyncService.kt index c8d41f78c..064662f14 100644 --- a/bpdm-bridge-dummy/src/main/kotlin/com/catenax/bpdm/bridge/dummy/service/SyncService.kt +++ b/bpdm-bridge-dummy/src/main/kotlin/com/catenax/bpdm/bridge/dummy/service/SyncService.kt @@ -121,9 +121,9 @@ class SyncService( // TODO use pagination properly val response = gateClient.legalEntities().getLegalEntitiesByExternalIds( externalIds = externalIds, - paginationRequest = PaginationStartAfterRequest(null, 100) + paginationRequest = PaginationRequest(0, 100) ) - logger.info { "Gate returned ${response.content.size} valid legal entities, ${response.invalidEntries} were invalid" } + //logger.info { "Gate returned ${response.content.size} valid legal entities, ${response.invalidEntries} were invalid" } //TODO Need invalidEntries on Response return response.content }