Skip to content

Commit

Permalink
fix model
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien2p committed Nov 3, 2023
1 parent d6551f1 commit 104023d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { ProductTypes, WorkflowTypes } from "@medusajs/types"
import { MedusaError } from "@medusajs/utils"
import { WorkflowArguments } from "../../helper"
import { ModuleRegistrationName } from "@medusajs/modules-sdk"
import { Region } from "@medusajs/medusa"

type ProductHandle = string
type VariantIndexAndPrices = {
Expand Down Expand Up @@ -83,7 +82,7 @@ export async function updateProductsVariantsPrices({
const regions = await regionService.list({
id: [...regionIds],
})
const regionMap = new Map<string, Region>(regions.map((r) => [r.id, r]))
const regionMap = new Map<string, any>(regions.map((r) => [r.id, r]))

for (const [, prices] of variantPricesMap.entries()) {
prices.forEach((price) => {
Expand Down

0 comments on commit 104023d

Please sign in to comment.