fix: remove debug
This commit is contained in:
1 parent
129d8cf3ba
commit
4d575e0a26
1 file changed
-7
@@ -11,12 +11,8 @@ export default {
|
|||||||
|
|
||||||
const ip = req.headers["x-forwarded-for"] || req.connection.remoteAddress
|
const ip = req.headers["x-forwarded-for"] || req.connection.remoteAddress
|
||||||
|
|
||||||
console.log(ip)
|
|
||||||
|
|
||||||
const { data } = await ipLookupService.lookupIp(ip)
|
const { data } = await ipLookupService.lookupIp(ip)
|
||||||
|
|
||||||
console.log(data)
|
|
||||||
|
|
||||||
if (!data.country_code) {
|
if (!data.country_code) {
|
||||||
next()
|
next()
|
||||||
return
|
return
|
||||||
@@ -27,8 +23,6 @@ export default {
|
|||||||
countries: data.country_code,
|
countries: data.country_code,
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log(regions)
|
|
||||||
|
|
||||||
// If this region exists, add it to the body of the cart creation request
|
// If this region exists, add it to the body of the cart creation request
|
||||||
if (regions[0]) {
|
if (regions[0]) {
|
||||||
req.body.region_id = regions[0]._id.toString()
|
req.body.region_id = regions[0]._id.toString()
|
||||||
@@ -36,7 +30,6 @@ export default {
|
|||||||
|
|
||||||
next()
|
next()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error)
|
|
||||||
next()
|
next()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user