feat(core-flows,types,pricing,medusa): Products API can create prices with rules (#7796)
* chore: Products API can create prices with rules * chore: fix tests * chore: cleanup * chore: address comments
This commit is contained in:
@@ -43,9 +43,10 @@ export const updatePriceSetsStep = createStep(
|
||||
return new StepResponse([], null)
|
||||
}
|
||||
|
||||
const { selects, relations } = getSelectsAndRelationsFromObjectArray([
|
||||
data.update,
|
||||
])
|
||||
const { selects, relations } = getSelectsAndRelationsFromObjectArray(
|
||||
[data.update],
|
||||
{ objectFields: ["rules"] }
|
||||
)
|
||||
|
||||
const dataBeforeUpdate = await pricingModule.listPriceSets(data.selector, {
|
||||
select: selects,
|
||||
|
||||
Reference in New Issue
Block a user