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
@@ -48,7 +48,7 @@ describe("Product Categories", () => {
is_active: false
})
productCategoryRepository = dbConnection.manager.getCustomRepository(ProductCategoryRepository)
productCategoryRepository = dbConnection.manager.withRepository(ProductCategoryRepository)
})
it("can fetch all root categories", async () => {
@@ -133,7 +133,7 @@ describe("Product Categories", () => {
}
)
productCategoryRepository = dbConnection.manager.getCustomRepository(ProductCategoryRepository)
productCategoryRepository = dbConnection.manager.withRepository(ProductCategoryRepository)
})
it("fetches all active categories", async () => {
@@ -200,7 +200,7 @@ describe("Product Categories", () => {
const [ categories, count ] = await productCategoryRepository.getFreeTextSearchResultsAndCount(
{
where: { id: a11.id },
relations: ['parent_category', 'category_children'],
relations: { parent_category: true, category_children: true },
},
)
+1 -1
View File
@@ -10,7 +10,7 @@
"dependencies": {
"@medusajs/medusa": "*",
"medusa-interfaces": "*",
"typeorm": "^0.2.31"
"typeorm": "^0.3.11"
},
"devDependencies": {
"@babel/cli": "^7.12.10",