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

This commit is contained in:
Riqwan Thamir authored and GitHub committed 2023-02-15 16:25:30 +01:00
1 parent 8137061908
commit 121b42acfe
275 files changed
+4493 -4780

No files matched your search

+2 -2
View File
@@ -21,6 +21,7 @@
"cross-env": "^5.2.1",
"jest": "^25.5.4",
"ts-jest": "^25.5.1",
"typeorm": "^0.3.11",
"typescript": "^4.4.4"
},
"scripts": {
@@ -32,7 +33,6 @@
},
"peerDependencies": {
"@medusajs/medusa": "^1.7.7",
"medusa-interfaces": "1.3.6",
"typeorm": "^0.2.31"
"typeorm": "^0.3.11"
}
}
@@ -240,7 +240,7 @@ export default class StockLocationService extends TransactionBaseService {
const locationAddressRepo = manager.getRepository(StockLocationAddress)
const existingAddress = await locationAddressRepo.findOne({
id: addressId,
where: { id: addressId }
})
if (!existingAddress) {
throw new MedusaError(