Fix(medusa, inventory, stock-location, types, utils): Modules sdk build query (#5713)
* remove defaults * take 2 * works now * add changeset * pricing module and pricing service list take null updates * update handlers * update product module service with take:null where relevant * no spread * note to self:default offset should be 0, not 15
This commit is contained in:
1 parent
faa528159d
commit
18afe0b9ad
19 files changed
+103
-45
No files matched your search
@@ -255,7 +255,9 @@ export default class ProductModuleService<
|
||||
|
||||
const productOptions = await this.listOptions(
|
||||
{ id: productOptionIds },
|
||||
{},
|
||||
{
|
||||
take: null,
|
||||
},
|
||||
sharedContext
|
||||
)
|
||||
|
||||
@@ -345,7 +347,7 @@ export default class ProductModuleService<
|
||||
const variantIdsToUpdate = data.map(({ id }) => id)
|
||||
const variants = await this.listVariants(
|
||||
{ id: variantIdsToUpdate },
|
||||
{ relations: ["options", "options.option"] },
|
||||
{ relations: ["options", "options.option"], take: null },
|
||||
sharedContext
|
||||
)
|
||||
const variantsMap = new Map(
|
||||
@@ -1053,7 +1055,9 @@ export default class ProductModuleService<
|
||||
const productIds = data.map((pd) => pd.id)
|
||||
const existingProductVariants = await this.productVariantService_.list(
|
||||
{ product_id: productIds },
|
||||
{},
|
||||
{
|
||||
take: null,
|
||||
},
|
||||
sharedContext
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user