fix(orchestration): remote joiner alias conflict (#8844)

This commit is contained in:
Carlos R. L. Rodrigues
2024-08-28 11:34:22 -03:00
committed by GitHub
parent 68f3244de3
commit 6cfe9bd874
38 changed files with 998 additions and 998 deletions

View File

@@ -18,8 +18,8 @@ import {
Property,
Rel,
} from "@mikro-orm/core"
import ShippingMethodAdjustment from "./shipping-method-adjustment"
import ShippingMethodTaxLine from "./shipping-method-tax-line"
import OrderShippingMethodAdjustment from "./shipping-method-adjustment"
import OrderShippingMethodTaxLine from "./shipping-method-tax-line"
const DeletedAtIndex = createPsqlIndexStatementHelper({
tableName: "order_shipping_method",
@@ -35,7 +35,7 @@ const ShippingOptionIdIndex = createPsqlIndexStatementHelper({
@Entity({ tableName: "order_shipping_method" })
@Filter(DALUtils.mikroOrmSoftDeletableFilterOptions)
export default class ShippingMethod {
export default class OrderShippingMethod {
@PrimaryKey({ columnType: "text" })
id: string
@@ -68,22 +68,22 @@ export default class ShippingMethod {
metadata: Record<string, unknown> | null = null
@OneToMany(
() => ShippingMethodTaxLine,
() => OrderShippingMethodTaxLine,
(taxLine) => taxLine.shipping_method,
{
cascade: [Cascade.PERSIST, "soft-remove" as Cascade],
}
)
tax_lines = new Collection<Rel<ShippingMethodTaxLine>>(this)
tax_lines = new Collection<Rel<OrderShippingMethodTaxLine>>(this)
@OneToMany(
() => ShippingMethodAdjustment,
() => OrderShippingMethodAdjustment,
(adjustment) => adjustment.shipping_method,
{
cascade: [Cascade.PERSIST, "soft-remove" as Cascade],
}
)
adjustments = new Collection<Rel<ShippingMethodAdjustment>>(this)
adjustments = new Collection<Rel<OrderShippingMethodAdjustment>>(this)
@Property({
onCreate: () => new Date(),