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

@@ -21,7 +21,7 @@ const FulfillmentDeletedAtIndex = createPsqlIndexStatementHelper({
})
@Entity({ tableName: "fulfillment_address" })
export default class Address {
export default class FulfillmentAddress {
[OptionalProps]: OptionalAddressProps
@PrimaryKey({ columnType: "text" })

View File

@@ -20,7 +20,7 @@ import {
Property,
Rel,
} from "@mikro-orm/core"
import Address from "./address"
import FulfillmentAddress from "./address"
import FulfillmentItem from "./fulfillment-item"
import FulfillmentLabel from "./fulfillment-label"
import FulfillmentProvider from "./fulfillment-provider"
@@ -127,13 +127,13 @@ export default class Fulfillment {
provider: Rel<FulfillmentProvider>
@OneToOne({
entity: () => Address,
entity: () => FulfillmentAddress,
owner: true,
cascade: [Cascade.PERSIST, "soft-remove"] as any,
nullable: true,
onDelete: "cascade",
})
delivery_address!: Rel<Address>
delivery_address!: Rel<FulfillmentAddress>
@OneToMany(() => FulfillmentItem, (item) => item.fulfillment, {
cascade: [Cascade.PERSIST, "soft-remove"] as any,

View File

@@ -1,4 +1,4 @@
export { default as Address } from "./address"
export { default as FulfillmentAddress } from "./address"
export { default as Fulfillment } from "./fulfillment"
export { default as FulfillmentItem } from "./fulfillment-item"
export { default as FulfillmentLabel } from "./fulfillment-label"
@@ -10,4 +10,3 @@ export { default as ShippingOption } from "./shipping-option"
export { default as ShippingOptionRule } from "./shipping-option-rule"
export { default as ShippingOptionType } from "./shipping-option-type"
export { default as ShippingProfile } from "./shipping-profile"