chore: fix interfaces for product module (#5387)

Some changes based on @shahednasser's PR - https://github.com/medusajs/medusa/pull/5341
This commit is contained in:
Riqwan Thamir
2023-10-18 13:38:12 +00:00
committed by GitHub
parent a0963f0edf
commit 453297f525
8 changed files with 280 additions and 152 deletions
@@ -446,7 +446,11 @@ export default class ProductModuleService<
sharedContext
)
return JSON.parse(JSON.stringify(productOptions))
return await this.baseRepository_.serialize<
ProductTypes.ProductOptionDTO[]
>(productOptions, {
populate: true,
})
}
@InjectTransactionManager(shouldForceTransaction, "baseRepository_")
@@ -459,7 +463,11 @@ export default class ProductModuleService<
sharedContext
)
return JSON.parse(JSON.stringify(productOptions))
return await this.baseRepository_.serialize<
ProductTypes.ProductOptionDTO[]
>(productOptions, {
populate: true,
})
}
@InjectTransactionManager(shouldForceTransaction, "baseRepository_")