chore(medusa): Typeorm upgrade to 0.3.11 (#3041)

This commit is contained in:
Riqwan Thamir
2023-02-15 16:25:30 +01:00
committed by GitHub
parent 8137061908
commit 121b42acfe
275 changed files with 4493 additions and 4780 deletions
@@ -11,8 +11,8 @@ const {
ProductOption,
} = require("@medusajs/medusa")
module.exports = async (connection, data = {}) => {
const manager = connection.manager
module.exports = async (dataSource, data = {}) => {
const manager = dataSource.manager
const yesterday = ((today) => new Date(today.setDate(today.getDate() - 1)))(
new Date()
@@ -23,7 +23,7 @@ module.exports = async (connection, data = {}) => {
)
const defaultProfile = await manager.findOne(ShippingProfile, {
type: "default",
where: { type: ShippingProfile.default },
})
const collection = manager.create(ProductCollection, {