Browse Source

refactor(core): Allow overriding importer methods (#3096)

Yazid HANIFI 1 year ago
parent
commit
b2a74746b5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/core/src/data-import/providers/importer/importer.ts

+ 2 - 2
packages/core/src/data-import/providers/importer/importer.ts

@@ -297,7 +297,7 @@ export class Importer {
         return errors;
         return errors;
     }
     }
 
 
-    private async getFacetValueIds(
+    protected async getFacetValueIds(
         ctx: RequestContext,
         ctx: RequestContext,
         facets: ParsedFacet[],
         facets: ParsedFacet[],
         languageCode: LanguageCode,
         languageCode: LanguageCode,
@@ -363,7 +363,7 @@ export class Importer {
         return facetValueIds;
         return facetValueIds;
     }
     }
 
 
-    private processCustomFieldValues(customFields: { [field: string]: string }, config: CustomFieldConfig[]) {
+    protected processCustomFieldValues(customFields: { [field: string]: string }, config: CustomFieldConfig[]) {
         const processed: { [field: string]: string | string[] | boolean | undefined } = {};
         const processed: { [field: string]: string | string[] | boolean | undefined } = {};
         for (const fieldDef of config) {
         for (const fieldDef of config) {
             const value = customFields[fieldDef.name];
             const value = customFields[fieldDef.name];