diff --git a/src/intervals/score.ts b/src/intervals/score.ts index 1aa9065..d412490 100644 --- a/src/intervals/score.ts +++ b/src/intervals/score.ts @@ -156,7 +156,9 @@ export default async function calculateScore(client: Client): Promise 0) { + const inquiries = await client.db.Inquiry.find({ userID: member.user.id }).lean().exec(); + + if (inquiries?.length > 0) { for (const inq of score.inquiries) { const testDate = (new Date(new Date(inq.date).setHours(1460))); if (testDate > new Date()) other -= 1.65;