fix query
This commit is contained in:
parent
5274059ca4
commit
4c09c2f3d6
@ -69,7 +69,7 @@ class UserDatabase extends AbstractUserDatabase {
|
||||
let user = this.cache.find((u) => u.externalProfiles.discord?.id === profile.id);
|
||||
if (user) return Promise.resolve(user);
|
||||
|
||||
const data = await this.collection.findOne({ 'discord.id': profile.id });
|
||||
const data = await this.collection.findOne({ 'externalProfiles.discord.id': profile.id });
|
||||
if (data) user = this._createUser(data);
|
||||
else {
|
||||
this.logger.info(`Creating new user from Discord profile: ${profile.username} (${profile.id})`);
|
||||
|
Loading…
Reference in New Issue
Block a user