From bdcfaf4d92fc64d1776e6f87e11713736621874d Mon Sep 17 00:00:00 2001 From: Derick M <58572875+TurtIeSocks@users.noreply.github.com> Date: Sat, 2 Mar 2024 13:38:15 -0500 Subject: [PATCH] fix: oops, swap ternary --- server/src/services/logUserAuth.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/services/logUserAuth.js b/server/src/services/logUserAuth.js index 422fef07f..7d7ea282e 100644 --- a/server/src/services/logUserAuth.js +++ b/server/src/services/logUserAuth.js @@ -51,7 +51,8 @@ async function getAuthInfo(req, user, strategy = 'custom', hidePii = false) { )[0] const geo = hidePii - ? await fetch(`http://ip-api.com/json/${ip}?fields=66846719&lang=en`) + ? {} + : await fetch(`http://ip-api.com/json/${ip}?fields=66846719&lang=en`) .then((res) => res.json()) .catch((err) => { log.warn( @@ -61,7 +62,6 @@ async function getAuthInfo(req, user, strategy = 'custom', hidePii = false) { ) return {} }) - : {} const embed = { color: 0xff0000,