Skip to content

Commit

Permalink
refactor: removed limit from taxonomy and term types
Browse files Browse the repository at this point in the history
  • Loading branch information
aman19K committed Sep 26, 2023
1 parent 0fc7e72 commit 334b007
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export default class ImportTaxonomies extends BaseClass {
serializeTaxonomy(apiOptions: ApiOptions): ApiOptions {
const { apiData: taxonomy } = apiOptions;
if (this.taxonomiesSuccess.hasOwnProperty(taxonomy.uid)) {
log(this.importConfig, `Taxonomy '${taxonomy.title}' already exists. Skipping it to avoid duplicates!`, 'info');
log(this.importConfig, `Taxonomy '${taxonomy.name}' already exists. Skipping it to avoid duplicates!`, 'info');
apiOptions.entity = undefined;
} else {
apiOptions.apiData = taxonomy;
Expand Down
2 changes: 0 additions & 2 deletions packages/contentstack-import/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,12 @@ export interface TaxonomiesConfig{
dirName: string;
fileName: string;
dependencies?: Modules[];
limit?: number;
}

export interface TermsConfig{
dirName: string;
fileName: string;
dependencies?: Modules[];
limit?: number;
}

export { default as DefaultConfig } from './default-config';
Expand Down

0 comments on commit 334b007

Please sign in to comment.