change expiration dates for scores

pull/29/head
Matthew 2020-10-28 20:46:01 -04:00
parent 6485d94a55
commit 6f8104ecb5
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
3 changed files with 5 additions and 5 deletions

View File

@ -100,7 +100,7 @@ export default class Report extends Route {
const inquiries: [{ id?: string, name: string, date: Date }?] = [];
if (member.inquiries?.length > 0) {
for (const inq of member.inquiries) {
const testDate = (new Date(new Date(inq.date).setHours(2190)));
const testDate = (new Date(new Date(inq.date).setHours(1460)));
if (testDate > new Date()) inquiries.push({ id: inq.id, name: inq.name, date: inq.date });
}
}

View File

@ -161,9 +161,9 @@ export default class Score extends Command {
}
} */
if (score?.inquiries?.length > 0) {
let desc = '__**Hard Inquiries**__\n*These inquiries will fall off your report within 3 months, try to keep your hard inquiries to a minimum. If you want to file a dispute, please DM Ramirez.*\n\n';
let desc = '__**Hard Inquiries**__\n*These inquiries will fall off your report within 2 months, try to keep your hard inquiries to a minimum. If you want to file a dispute, please DM Ramirez.*\n\n';
score.inquiries.forEach((inq) => {
const testDate = (new Date(new Date(inq.date).setHours(2190)));
const testDate = (new Date(new Date(inq.date).setHours(1460)));
// eslint-disable-next-line no-useless-escape
if (testDate > new Date()) desc += `${inq.id ? `__[${inq.id}]__\n` : ''}**Department/Service:** ${inq.name.replace(/\*/gmi, '')}\n**Reason:** ${inq.reason}\n**Date:** ${inq.date.toLocaleString('en-us')} ET\n**Expires:** ${moment(testDate).fromNow()} | ${moment(testDate).calendar()}\n\n`;
});

View File

@ -144,8 +144,8 @@ export default async function calculateScore(client: Client): Promise<NodeJS.Tim
if (score.inquiries?.length > 0) {
for (const inq of score.inquiries) {
const testDate = (new Date(new Date(inq.date).setHours(2190)));
if (testDate > new Date()) other -= 1.5;
const testDate = (new Date(new Date(inq.date).setHours(1460)));
if (testDate > new Date()) other -= 1.65;
}
other = Math.floor(other * 1.15);
}