fixes
parent
e94798d5c3
commit
436f29e73e
|
@ -285,6 +285,8 @@ export default class Report extends Route {
|
|||
|
||||
const member = await this.server.client.db.Score.findOne({ userID: req.body.userID, 'pin.2': req.body.pin }).lean().exec();
|
||||
if (!member) return res.status(401).json({ code: this.constants.codes.UNAUTHORIZED, message: this.constants.messages.UNAUTHORIZED });
|
||||
const mem = this.server.client.util.resolveMember(member.userID, this.server.client.guilds.get(this.server.client.config.guildID));
|
||||
if (!mem) return res.status(404).json({ code: this.constants.codes.NOT_FOUND, message: this.constants.codes.NOT_FOUND });
|
||||
|
||||
let totalScore: number;
|
||||
|
||||
|
@ -297,7 +299,6 @@ export default class Report extends Route {
|
|||
const embed = new RichEmbed();
|
||||
embed.setTitle('Inquiry Notification');
|
||||
embed.setColor('#00FFFF');
|
||||
const mem = this.server.client.util.resolveMember(member.userID, this.server.client.guilds.get(this.server.client.config.guildID));
|
||||
embed.addField('Member', `${mem.user.username}#${mem.user.discriminator} | <@${member.userID}>`, true);
|
||||
embed.addField('Type', 'SOFT', true);
|
||||
embed.addField('Department/Service', merchant.name.toUpperCase(), true);
|
||||
|
|
Loading…
Reference in New Issue