fix intervals

merge-requests/25/merge
Matthew 2021-04-12 23:07:01 -04:00
parent 4f86ab695e
commit eb0af1c182
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ export default async function calculateScore(client: Client): Promise<NodeJS.Tim
const inquiries = await client.db.Inquiry.find({ userID: member.user.id }).lean().exec();
if (inquiries?.length > 0) {
for (const inq of score.inquiries) {
for (const inq of inquiries) {
const testDate = (new Date(new Date(inq.date).setHours(1460)));
if (testDate > new Date()) other -= 1.65;
}