Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
fix: uses pager to export all items for certain object types (fixes #4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Enngage committed Aug 6, 2020
1 parent fd38c54 commit 5d81e13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/export/export.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class ExportService {
}

public async exportLanguagesAsync(): Promise<LanguageContracts.ILanguageModelContract[]> {
const response = await this.client.listLanguages().toPromise();
const response = await this.client.listLanguages().toAllPromise();
response.data.items.forEach(m => this.processItem(m.name, 'language', m));
return response.data.items.map(m => m._raw);
}
Expand Down Expand Up @@ -137,7 +137,7 @@ export class ExportService {
await this.client
.listLanguageVariantsOfContentTypeWithComponents()
.byTypeId(typeId)
.toPromise()
.toAllPromise()
).data.items.map(m => m._raw)
);

Expand All @@ -146,7 +146,7 @@ export class ExportService {
await this.client
.listLanguageVariantsOfContentType()
.byTypeId(typeId)
.toPromise()
.toAllPromise()
).data.items.map(m => m._raw)
);
}
Expand Down

0 comments on commit 5d81e13

Please sign in to comment.