fix intervals
parent
4f86ab695e
commit
eb0af1c182
|
@ -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();
|
const inquiries = await client.db.Inquiry.find({ userID: member.user.id }).lean().exec();
|
||||||
|
|
||||||
if (inquiries?.length > 0) {
|
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)));
|
const testDate = (new Date(new Date(inq.date).setHours(1460)));
|
||||||
if (testDate > new Date()) other -= 1.65;
|
if (testDate > new Date()) other -= 1.65;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue