Skip to content

Commit

Permalink
fix(inventory): cannot migrate existing products (medusajs#6821)
Browse files Browse the repository at this point in the history
  • Loading branch information
gempain committed Mar 29, 2024
1 parent d97af91 commit 5f248c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/medusa/src/scripts/migrate-inventory-items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const migrate = async function ({ directory }) {
await processBatch(variants, defaultLocationId, container)

let processedCount = variants.length
Logger.log(`Processed ${processedCount} of ${totalCount}`)
Logger.info(`Processed ${processedCount} of ${totalCount}`)
while (processedCount < totalCount) {
const nextBatch = await variantService.list(
{},
Expand All @@ -148,10 +148,10 @@ const migrate = async function ({ directory }) {
await processBatch(nextBatch, defaultLocationId, container)

processedCount += nextBatch.length
Logger.log(`Processed ${processedCount} of ${totalCount}`)
Logger.info(`Processed ${processedCount} of ${totalCount}`)
}

Logger.log("Done")
Logger.info("Done")
process.exit(0)
}

Expand Down

0 comments on commit 5f248c5

Please sign in to comment.