chore(medusa): Typeorm upgrade to 0.3.11 (#3041)
This commit is contained in:
@@ -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 },
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"dependencies": {
|
||||
"@medusajs/medusa": "*",
|
||||
"medusa-interfaces": "*",
|
||||
"typeorm": "^0.2.31"
|
||||
"typeorm": "^0.3.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.12.10",
|
||||
|
||||
Reference in New Issue
Block a user