From 4578819c1a8578f8ed011e2454dfc50d8d01f668 Mon Sep 17 00:00:00 2001 From: Bsian Date: Sat, 7 Nov 2020 12:58:26 +0000 Subject: [PATCH] Fix history --- src/commands/score_hist.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/score_hist.ts b/src/commands/score_hist.ts index 96fe945..c7c299f 100644 --- a/src/commands/score_hist.ts +++ b/src/commands/score_hist.ts @@ -83,8 +83,8 @@ export default class Score_Hist extends Command { if (testDate > new Date()) hardInquiries++; }); data += `__CommScore™:__ ${totalScore}\n__Activity:__ ${activityScore}\n__Roles:__ ${roleScore}\n__Moderation:__ ${moderationScore}\n__Cloud Services:__ ${cloudServicesScore}\n__Other:__ ${otherScore}\n__Misc:__ ${miscScore}\n\n__Hard Inquiries:__ ${hardInquiries}\n__Soft Inquiries:__ ${hist.report.softInquiries?.length ?? '0'}`; + histArray.push({ name: moment(hist.date).calendar(), value: data }); } - histArray.push({ name: moment(hist.date).calendar(), value: data }); } const stat = { @@ -235,8 +235,8 @@ export default class Score_Hist extends Command { if (testDate > new Date()) hardInquiries++; }); data += `__CommScore™:__ ${totalScore}\n__Activity:__ ${activityScore}\n__Roles:__ ${roleScore}\n__Moderation:__ ${moderationScore}\n__Cloud Services:__ ${cloudServicesScore}\n__Other:__ ${otherScore}\n__Misc:__ ${miscScore}\n\n__Hard Inquiries:__ ${hardInquiries}\n__Soft Inquiries:__ ${hist.report.softInquiries?.length ?? '0'}`; + histArray.push({ name: moment(hist.date).calendar(), value: data }); } - histArray.push({ name: moment(hist.date).calendar(), value: data }); } const stat = {