Skip to content

Commit

Permalink
act
Browse files Browse the repository at this point in the history
  • Loading branch information
Geczy committed Sep 4, 2023
1 parent b99f63a commit e85ef0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dota/src/db/getDBUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default async function getDBUser({
return client
}

const Account = user?.Account?.shift()
const Account = Array.isArray(user?.Account) ? user.Account[0] : user.Account
if (!Account) {
logger.info('Invalid token missing Account??', { token: lookupToken })
invalidTokens.add(lookupToken)
Expand Down

0 comments on commit e85ef0f

Please sign in to comment.