Attempt to fix build
This commit is contained in:
parent
d96367b101
commit
cb34344f0a
1 changed files with 3 additions and 3 deletions
|
|
@ -190,11 +190,11 @@ export class Main {
|
||||||
const ipAddress = <string>request.headers['x-forwarded-for']
|
const ipAddress = <string>request.headers['x-forwarded-for']
|
||||||
const db = ipAddress.match(Main.ipv4Regex) ? this.ipv4 : this.ipv6
|
const db = ipAddress.match(Main.ipv4Regex) ? this.ipv4 : this.ipv6
|
||||||
const fullResult = db.getAll(ipAddress)
|
const fullResult = db.getAll(ipAddress)
|
||||||
const result = {}
|
const result: Record<string, string> = {}
|
||||||
for (const k in this.allowedKeys) {
|
for (const k of this.allowedKeys) {
|
||||||
result[k] = fullResult[k]
|
result[k] = fullResult[k]
|
||||||
}
|
}
|
||||||
return <any>result
|
return <IP2LocationResult> <any> result
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue