diff --git a/src/commands/apply.ts b/src/commands/apply.ts index d8979df..3dc1166 100644 --- a/src/commands/apply.ts +++ b/src/commands/apply.ts @@ -41,7 +41,7 @@ export default class Apply extends Command { const ax = require('axios'); await ax({ method: 'get', - url: `https://api.libraryofcode.org/wh/t2?userID=${member.id}&auth=${client.config.internalKey}`, + url: `https://api.cloud.libraryofcode.org/wh/t2?userID=${member.id}&auth=${client.config.internalKey}`, }); }, }); diff --git a/src/commands/whois.ts b/src/commands/whois.ts index bc1e1b0..75d9c7c 100644 --- a/src/commands/whois.ts +++ b/src/commands/whois.ts @@ -78,7 +78,7 @@ export default class Whois extends Command { // if (platform) embed.addField('Platform', platform, true); embed.addField('Joined At', `${moment(new Date(member.joinedAt)).format('dddd, MMMM Do YYYY, h:mm:ss A')} ET`, true); embed.addField('Created At', `${moment(new Date(member.user.createdAt)).format('dddd, MMMM Do YYYY, h:mm:ss A')} ET`, true); - const score = await this.client.db.Score.findOne({ userID: member.id }); + const score = await this.client.db.Score.findOne({ userID: member.id }).lean().exec(); if (score) { await this.client.db.Score.updateOne({ userID: member.id }, { $addToSet: { softInquiries: { name: 'Library of Code sp-us | Bureau of Community Reports', date: new Date() } } }); const embed2 = new RichEmbed();