From 25c6ed6100f88b8a683b9b74fb762a6cc65b5146 Mon Sep 17 00:00:00 2001 From: dharini Date: Tue, 5 Dec 2023 09:23:48 -0800 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20fieldname=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addons/api/addon/adapters/application.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/addons/api/addon/adapters/application.js b/addons/api/addon/adapters/application.js index fe9c69977..072635881 100644 --- a/addons/api/addon/adapters/application.js +++ b/addons/api/addon/adapters/application.js @@ -109,7 +109,7 @@ export default class ApplicationAdapter extends RESTAdapter.extend( /** * Intercepts "empty" responses and adds an empty `items` array. * This query method now supports pagination by checking the responseType and - * passing in the refresh token if the responseType indicates more data + * passing in the list token if the responseType indicates more data * @override * @method query * @return {Promise} promise @@ -125,12 +125,8 @@ export default class ApplicationAdapter extends RESTAdapter.extend( //add the result items to a data array if (result && result.items) { data.push(...result.items); - //pass in the refresh token for subsequent calls to fetch the remaining list items - query.refresh_token = result.refresh_token; - //break the loop as soon the response_type becomes complete - if (result.response_type === 'complete') { - break; - } + //pass in the list token for subsequent calls to fetch the remaining list items + query.list_token = result.list_token; } } while (result && result.response_type === 'delta');