fix(order): add data model name in define schema (#11181)
Add missing data model name in `model.define` in the Order Module where missing, as we need to infer the names in the references we generate Closes DX-1305
This commit is contained in:
1 parent
040b7b274e
commit
16fe43f214
5 files changed
+9
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/order": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(order): add data model name in define schema
|
||||||
@@ -5,6 +5,7 @@ const _OrderSummary = model
|
|||||||
.define(
|
.define(
|
||||||
{
|
{
|
||||||
tableName: "order_summary",
|
tableName: "order_summary",
|
||||||
|
name: "OrderSummary",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: model.id({ prefix: "ordsum" }).primaryKey(),
|
id: model.id({ prefix: "ordsum" }).primaryKey(),
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import { ReturnReason } from "./return-reason"
|
|||||||
const _ReturnItem = model
|
const _ReturnItem = model
|
||||||
.define(
|
.define(
|
||||||
{
|
{
|
||||||
|
name: "ReturnItem",
|
||||||
tableName: "return_item",
|
tableName: "return_item",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ const _OrderShippingMethodAdjustment = model
|
|||||||
.define(
|
.define(
|
||||||
{
|
{
|
||||||
tableName: "order_shipping_method_adjustment",
|
tableName: "order_shipping_method_adjustment",
|
||||||
|
name: "OrderShippingMethodAdjustment",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: model.id({ prefix: "ordsmadj" }).primaryKey(),
|
id: model.id({ prefix: "ordsmadj" }).primaryKey(),
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ const _OrderShippingMethodTaxLine = model
|
|||||||
.define(
|
.define(
|
||||||
{
|
{
|
||||||
tableName: "order_shipping_method_tax_line",
|
tableName: "order_shipping_method_tax_line",
|
||||||
|
name: "OrderShippingMethodTaxLine",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: model.id({ prefix: "ordsmtxl" }).primaryKey(),
|
id: model.id({ prefix: "ordsmtxl" }).primaryKey(),
|
||||||
|
|||||||
Reference in new issue
Block a user