Skip to content

Commit

Permalink
fix: username fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Jan 26, 2024
1 parent 4ed0916 commit 05261c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/services/api/scannerApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ async function scannerApi(
}
const scannerResponse = await fetch(
`${payloadObj.url}${payloadObj.url.includes('?') ? '&' : '?'}username=${
user.username
user.username || user.id || 'a visitor'
}`,
{
...payloadObj.options,
Expand Down

0 comments on commit 05261c1

Please sign in to comment.