fix inquiry OS modifications
parent
cb11be7602
commit
e4a63cbf30
|
@ -156,7 +156,9 @@ export default async function calculateScore(client: Client): Promise<NodeJS.Tim
|
||||||
else cloudServices = Math.floor(positives * 0.61);
|
else cloudServices = Math.floor(positives * 0.61);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (score.inquiries?.length > 0) {
|
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 score.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