chore(medusa): Typeorm upgrade to 0.3.11 (#3041)
This commit is contained in:
@@ -14,6 +14,7 @@ const {
|
||||
LineItem,
|
||||
Payment,
|
||||
PaymentSession,
|
||||
ShippingProfileType,
|
||||
} = require("@medusajs/medusa")
|
||||
|
||||
module.exports = async (connection, data = {}) => {
|
||||
@@ -34,11 +35,15 @@ module.exports = async (connection, data = {}) => {
|
||||
const manager = connection.manager
|
||||
|
||||
const defaultProfile = await manager.findOne(ShippingProfile, {
|
||||
type: "default",
|
||||
where: {
|
||||
type: ShippingProfileType.DEFAULT,
|
||||
},
|
||||
})
|
||||
|
||||
const gcProfile = await manager.findOne(ShippingProfile, {
|
||||
type: "gift_card",
|
||||
where: {
|
||||
type: ShippingProfileType.GIFT_CARD,
|
||||
},
|
||||
})
|
||||
|
||||
await manager.insert(Address, {
|
||||
|
||||
@@ -14,13 +14,16 @@ const {
|
||||
Discount,
|
||||
DiscountRule,
|
||||
Payment,
|
||||
ShippingProfileType,
|
||||
} = require("@medusajs/medusa")
|
||||
|
||||
module.exports = async (connection, data = {}) => {
|
||||
const manager = connection.manager
|
||||
|
||||
const defaultProfile = await manager.findOne(ShippingProfile, {
|
||||
type: "default",
|
||||
where: {
|
||||
type: ShippingProfileType.DEFAULT,
|
||||
},
|
||||
})
|
||||
|
||||
await manager.insert(Product, {
|
||||
|
||||
@@ -13,13 +13,16 @@ const {
|
||||
ShippingOption,
|
||||
ShippingProfile,
|
||||
Swap,
|
||||
ShippingProfileType,
|
||||
} = require("@medusajs/medusa")
|
||||
|
||||
module.exports = async (connection, data = {}) => {
|
||||
const manager = connection.manager
|
||||
|
||||
const defaultProfile = await manager.findOne(ShippingProfile, {
|
||||
type: "default",
|
||||
where: {
|
||||
type: ShippingProfileType.DEFAULT,
|
||||
},
|
||||
})
|
||||
|
||||
await manager.insert(Product, {
|
||||
|
||||
@@ -8,13 +8,16 @@ const {
|
||||
ShippingProfile,
|
||||
ProductVariant,
|
||||
Image,
|
||||
ShippingProfileType,
|
||||
} = require("@medusajs/medusa")
|
||||
|
||||
module.exports = async (connection, data = {}) => {
|
||||
const manager = connection.manager
|
||||
|
||||
const defaultProfile = await manager.findOne(ShippingProfile, {
|
||||
type: "default",
|
||||
where: {
|
||||
type: ShippingProfileType.DEFAULT,
|
||||
},
|
||||
})
|
||||
|
||||
const coll = manager.create(ProductCollection, {
|
||||
|
||||
@@ -3,6 +3,7 @@ const {
|
||||
ShippingProfile,
|
||||
ShippingOption,
|
||||
ShippingOptionRequirement,
|
||||
ShippingProfileType,
|
||||
} = require("@medusajs/medusa")
|
||||
|
||||
module.exports = async (connection, data = {}) => {
|
||||
@@ -16,7 +17,9 @@ module.exports = async (connection, data = {}) => {
|
||||
})
|
||||
|
||||
const defaultProfile = await manager.findOne(ShippingProfile, {
|
||||
type: "default",
|
||||
where: {
|
||||
type: ShippingProfileType.DEFAULT,
|
||||
},
|
||||
})
|
||||
|
||||
await manager.insert(ShippingOption, {
|
||||
|
||||
Reference in New Issue
Block a user