fix interval

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

View File

@ -156,7 +156,7 @@ export default async function calculateScore(client: Client): Promise<NodeJS.Tim
else cloudServices = Math.floor(positives * 0.61);
}
const inquiries = await client.db.Inquiry.find({ userID: member.user.id }).lean().exec();
const inquiries = await client.db.Inquiry.find({ userID: member.user.id, type: 0 }).lean().exec();
if (inquiries?.length > 0) {
for (const inq of inquiries) {