A free open source IT asset/license management system
Fix ABM pagination: read meta.paging.nextCursor, not links.next
bjhinkle61d698ed83b4
diff --git a/app/SyncAdapters/AppleBusinessManager/AppleBusinessManagerClient.php b/app/SyncAdapters/AppleBusinessManager/AppleBusinessManagerClient.phpindex 597781cdea..bea5f2de45 100644--- a/app/SyncAdapters/AppleBusinessManager/AppleBusinessManagerClient.php+++ b/app/SyncAdapters/AppleBusinessManager/AppleBusinessManagerClient.php@@ -72,7 +72,7 @@ class AppleBusinessManagerClientyield $device;}- $cursor = $response['links']['next'] ?? null;+ $cursor = $response['meta']['paging']['nextCursor'] ?? null;} while (is_string($cursor) && $cursor !== '');}@@ -140,7 +140,7 @@ class AppleBusinessManagerClient}}- $cursor = $response['links']['next'] ?? null;+ $cursor = $response['meta']['paging']['nextCursor'] ?? null;} while (is_string($cursor) && $cursor !== '');}