Request JSON from server

This commit is contained in:
Zach Fox 2018-09-19 11:35:17 -07:00
parent f70ecdad16
commit 144771b77b

View file

@ -197,11 +197,11 @@ function AppUi(properties) {
} else { } else {
concatenatedServerResponse = concatenatedServerResponse.concat(that.notificationDataProcessPage(response)); concatenatedServerResponse = concatenatedServerResponse.concat(that.notificationDataProcessPage(response));
currentDataPageToRetrieve++; currentDataPageToRetrieve++;
request({ uri: (url + "&page=" + currentDataPageToRetrieve) }, requestCallback); request({ json: true, uri: (url + "&page=" + currentDataPageToRetrieve) }, requestCallback);
} }
} }
request({ uri: url }, requestCallback); request({ json: true, uri: url }, requestCallback);
}; };
// This won't do anything if there isn't a notification endpoint set // This won't do anything if there isn't a notification endpoint set