fix score cmd

merge-requests/25/merge
Matthew 2021-04-18 22:50:39 -04:00
parent 53802623de
commit fb8069c351
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ export default class Score extends Command {
embed.addField('Misc', miscScore || 'N/C', true);
let judgementsStr: string = '';
const judgements = await this.client.db.Judgement.find({ userID: user.id }).lean().exec();
if (judgements) {
if (judgements?.length > 0) {
for (const judgement of judgements) {
let severity: string;
switch (judgement.severity) {