summary refs log tree commit diff
path: root/src/api/util/handlers/Voice.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-20 18:10:47 +1100
committerGitHub <noreply@github.com>2023-01-20 18:10:47 +1100
commit71082eb918f055f07fa45cd44c90fcb0c8dd6a29 (patch)
tree34fe911abebb5e954b1fd5de57d8ed00d7304121 /src/api/util/handlers/Voice.ts
parentfix: route file regex (#956) (diff)
downloadserver-71082eb918f055f07fa45cd44c90fcb0c8dd6a29.tar.xz
Add ESLint (#941)
* Add eslint, switch to lint-staged for precommit

* Fix all ESLint errors

* Update GH workflow to check prettier and eslint
Diffstat (limited to 'src/api/util/handlers/Voice.ts')
-rw-r--r--src/api/util/handlers/Voice.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/util/handlers/Voice.ts b/src/api/util/handlers/Voice.ts

index d8d5c279..24bfa7b3 100644 --- a/src/api/util/handlers/Voice.ts +++ b/src/api/util/handlers/Voice.ts
@@ -31,7 +31,7 @@ export async function getVoiceRegions(ipAddress: string, vip: boolean) { let min = Number.POSITIVE_INFINITY; - for (let ar of availableRegions) { + for (const ar of availableRegions) { //TODO the endpoint location should be saved in the database if not already present to prevent IPAnalysis call const dist = distanceBetweenLocations( clientIpAnalysis,