fix(medusa-plugin-ip-lookup): Remove outdated Typeorm usage (#3884)

* fix(medusa-plugin-ip-lookup): Use new Typeorm API

* Create dull-trainers-count.md
This commit is contained in:
Oliver Windall Juhl authored and GitHub committed 2023-04-19 19:10:44 +02:00
1 parent 46ea671a46
commit 440f900af0
3 files changed
+17 -11

No files matched your search

+1 -1
View File
@@ -422,7 +422,7 @@ class RegionService extends TransactionBaseService {
this.countryRepository_
)
const query = buildQuery({ code }, {})
const query = buildQuery({ iso_2: code.toLowerCase() }, {})
const country = await countryRepository.findOne(query)
if (!country) {