Skip to content

Commit

Permalink
fix: oops, swap ternary
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Mar 2, 2024
1 parent b02cbb2 commit bdcfaf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/services/logUserAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -61,7 +62,6 @@ async function getAuthInfo(req, user, strategy = 'custom', hidePii = false) {
)
return {}
})
: {}

const embed = {
color: 0xff0000,
Expand Down

0 comments on commit bdcfaf4

Please sign in to comment.