chore(medusa): Typeorm upgrade to 0.3.11 (#3041)
This commit is contained in:
@@ -13,17 +13,18 @@ const {
|
||||
ShippingOption,
|
||||
ShippingProfile,
|
||||
Swap,
|
||||
ShippingProfileType,
|
||||
} = require("@medusajs/medusa")
|
||||
const { simpleSalesChannelFactory } = require("../factories")
|
||||
|
||||
module.exports = async (connection, data = {}) => {
|
||||
const manager = connection.manager
|
||||
module.exports = async (dataSource, data = {}) => {
|
||||
const manager = dataSource.manager
|
||||
|
||||
const defaultProfile = await manager.findOne(ShippingProfile, {
|
||||
type: "default",
|
||||
where: { type: ShippingProfileType.DEFAULT },
|
||||
})
|
||||
|
||||
const salesChannel = await simpleSalesChannelFactory(connection, {
|
||||
const salesChannel = await simpleSalesChannelFactory(dataSource, {
|
||||
id: "test-channel",
|
||||
is_default: true,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user