aboutsummaryrefslogtreecommitdiffstats
path: root/lib/register.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-12-01 11:36:35 -0800
committerAdam Soltys <[email protected]>2023-12-01 11:36:35 -0800
commit7709c1efde9a1f3078171ee56985cd25511d6f7b (patch)
treecd996eaaa860cdb3d7da688e0ad4c5ec7bae1a0c /lib/register.js
parent826c7b361c93905c4725755038d398221530051d (diff)
downloadcoinos-server-7709c1efde9a1f3078171ee56985cd25511d6f7b.tar.gz
coinos-server-7709c1efde9a1f3078171ee56985cd25511d6f7b.zip
biome formatter
Diffstat (limited to 'lib/register.js')
-rw-r--r--lib/register.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/register.js b/lib/register.js
index c52dad03..2459d3a8 100644
--- a/lib/register.js
+++ b/lib/register.js
@@ -28,9 +28,7 @@ export default async (user, ip, requireChallenge) => {
if (config.ipregistry) {
try {
let {
- location: {
- country: { code }
- }
+ location: { country: { code } }
} = await got(
`https://api.ipregistry.co/${ip}?key=${config.ipregistry}&fields=location.country.code`
).json();