Use correct endpoint to lookup by username
This commit is contained in:
parent
85f706d48f
commit
f5e94f2069
2 changed files with 15 additions and 9 deletions
|
@ -143,15 +143,15 @@ async function checkForUsername(
|
|||
}
|
||||
|
||||
try {
|
||||
const profile = await server.getProfileForUsername(username);
|
||||
const account = await server.getAccountForUsername(username);
|
||||
|
||||
if (!profile.uuid) {
|
||||
log.error("checkForUsername: Returned profile didn't include a uuid");
|
||||
if (!account.uuid) {
|
||||
log.error("checkForUsername: Returned account didn't include a uuid");
|
||||
return;
|
||||
}
|
||||
|
||||
return {
|
||||
uuid: UUID.cast(profile.uuid),
|
||||
uuid: UUID.cast(account.uuid),
|
||||
username,
|
||||
};
|
||||
} catch (error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue