Skip to content

Commit

Permalink
docs: Fix imports in populate script example
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Nov 23, 2023
1 parent fb0ea13 commit 56f65cc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/docs/guides/developer-guide/importing-data/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,10 @@ The `@vendure/core` package exposes a [`populate()` function](/reference/typescr
```ts title="src/my-populate-script.ts"
import { bootstrap, DefaultJobQueuePlugin } from '@vendure/core';
import { populate } from '@vendure/core/cli';
import path from "path";

import { config } from './vendure-config.ts';
import { initialData } from './my-initial-data.ts';
import { config } from './vendure-config';
import { initialData } from './my-initial-data';

const productsCsvFile = path.join(__dirname, 'path/to/products.csv')

Expand All @@ -198,7 +199,7 @@ const populateConfig = {
}

populate(
() => bootstrap(config),
() => bootstrap(populateConfig),
initialData,
productsCsvFile,
'my-channel-token' // optional - used to assign imported
Expand Down

0 comments on commit 56f65cc

Please sign in to comment.