feat(core-flows,medusa,order): remove return shipping (#8137)
What: * `DELETE /admin/returs/:id/shipping_methods/:action_id` FIXES: CC-187
This commit is contained in:
committed by
GitHub
parent
b7e6b1461b
commit
7123f9ff63
@@ -69,6 +69,13 @@ export function setFindMethods<T>(klass: Constructor<T>, entity: any) {
|
||||
|
||||
if (isRelatedEntity) {
|
||||
popWhere.order ??= {}
|
||||
|
||||
popWhere.shipping_methods ??= {}
|
||||
popWhere.shipping_methods.version = version
|
||||
popWhere.shipping_methods.deleted_at ??= null
|
||||
|
||||
popWhere.shipping_methods.shipping_method ??= {}
|
||||
popWhere.shipping_methods.shipping_method.deleted_at ??= null
|
||||
}
|
||||
|
||||
const orderWhere = isRelatedEntity ? popWhere.order : popWhere
|
||||
@@ -80,9 +87,12 @@ export function setFindMethods<T>(klass: Constructor<T>, entity: any) {
|
||||
orderWhere.items.version = version
|
||||
orderWhere.items.deleted_at ??= null
|
||||
|
||||
popWhere.shipping_methods ??= {}
|
||||
popWhere.shipping_methods.version = version
|
||||
popWhere.shipping_methods.deleted_at ??= null
|
||||
orderWhere.shipping_methods ??= {}
|
||||
orderWhere.shipping_methods.version = version
|
||||
orderWhere.shipping_methods.deleted_at ??= null
|
||||
|
||||
orderWhere.shipping_methods.shipping_method ??= {}
|
||||
orderWhere.shipping_methods.shipping_method.deleted_at ??= null
|
||||
|
||||
if (!config.options.orderBy) {
|
||||
config.options.orderBy = { id: "ASC" }
|
||||
|
||||
Reference in New Issue
Block a user