@forge/cli
13.1.013.2.0-next.4-experimental-c6a3916
out/environment/list-environment.js~
out/environment/list-environment.jsModified+4−4
Index: package/out/environment/list-environment.js
===================================================================
--- package/out/environment/list-environment.js
+++ package/out/environment/list-environment.js
@@ -7,22 +7,22 @@
constructor(client, getAppConfig) {
this.client = client;
this.getAppConfig = getAppConfig;
}
- async fetchPage(before) {
+ async fetchPage(after) {
const { id: appId } = await this.getAppConfig();
return this.client.listEnvironmentPage({
appId,
- before
+ after
});
}
async fetchAll() {
const allEnvironments = [];
let cursor;
do {
- const { environments, hasPreviousPage, startCursor } = await this.fetchPage(cursor);
+ const { environments, hasNextPage, endCursor } = await this.fetchPage(cursor);
allEnvironments.push(...environments);
- cursor = hasPreviousPage ? startCursor : undefined;
+ cursor = hasNextPage ? endCursor : undefined;
} while (cursor);
return allEnvironments;
}
}