Fix views crash on geoip update failure
This commit is contained in:
parent
61fec4e4ef
commit
f8b8dc674e
|
@ -25,9 +25,9 @@ export class GeoIP {
|
|||
const emptyResult = { country: null, subdivisionName: null }
|
||||
if (CONFIG.GEO_IP.ENABLED === false) return emptyResult
|
||||
|
||||
try {
|
||||
await this.initReadersIfNeeded()
|
||||
|
||||
try {
|
||||
const countryResult = this.countryReader?.get(ip)
|
||||
const cityResult = this.cityReader?.get(ip)
|
||||
|
||||
|
|
Loading…
Reference in New Issue