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

Commit

Permalink
feat: updates all dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Enngage committed May 3, 2022
1 parent 034d763 commit 8615809
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 93 deletions.
2 changes: 1 addition & 1 deletion lib/clean/clean.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class CleanService {
}

public async cleanTaxonomiesAsync(): Promise<void> {
const taxonomies = (await this.client.listTaxonomies().toPromise()).data.taxonomies;
const taxonomies = (await this.client.listTaxonomies().toPromise()).data.items;

for (const taxonomy of taxonomies) {
await this.client
Expand Down
6 changes: 3 additions & 3 deletions lib/export/export.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class ExportService {
}

public async exportProjectValidationAsync(): Promise<ProjectContracts.IProjectReportResponseContract> {
const response = await this.client.validateProjectContent().forProjectId(this.config.projectId).toPromise();
const response = await this.client.validateProjectContent().projectId(this.config.projectId).toPromise();
return response.rawData;
}

Expand Down Expand Up @@ -126,8 +126,8 @@ export class ExportService {

public async exportTaxonomiesAsync(): Promise<TaxonomyContracts.ITaxonomyContract[]> {
const response = await this.client.listTaxonomies().toPromise();
response.data.taxonomies.forEach((m) => this.processItem(m.name, 'taxonomy', m));
return response.data.taxonomies.map((m) => m._raw);
response.data.items.forEach((m) => this.processItem(m.name, 'taxonomy', m));
return response.data.items.map((m) => m._raw);
}

public async exportContentTypeSnippetsAsync(): Promise<ContentTypeSnippetContracts.IContentTypeSnippetContract[]> {
Expand Down
2 changes: 1 addition & 1 deletion lib/import/import.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ export class ImportService {

await this.client
.addAsset()
.withData(assetData)
.withData(builder => assetData)
.toPromise()
.then((response) => {
importedItems.push({
Expand Down
Loading

0 comments on commit 8615809

Please sign in to comment.