Browse Source

feat(core): Expose Importer.importProducts method

Michael Bromley 3 years ago
parent
commit
bbe09aa918
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/core/src/data-import/providers/importer/importer.ts

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

@@ -147,9 +147,10 @@ export class Importer {
     }
 
     /**
+     * @description
      * Imports the products specified in the rows object. Return an array of error messages.
      */
-    private async importProducts(
+    async importProducts(
         ctx: RequestContext,
         rows: ParsedProductWithVariants[],
         onProgress: OnProgressFn,