From 3dd55ae06b5511910ef8fe7f61fc754482d6fa5b Mon Sep 17 00:00:00 2001 From: Matthew R Date: Tue, 18 Aug 2020 00:28:23 -0400 Subject: [PATCH] fix issue with intervals --- src/intervals/departmentPager.ts | 42 ++++++++++++++++---------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/intervals/departmentPager.ts b/src/intervals/departmentPager.ts index 28fe74a..f600910 100644 --- a/src/intervals/departmentPager.ts +++ b/src/intervals/departmentPager.ts @@ -79,9 +79,9 @@ export default async function departmentPager(client: Client): Promise m.id === id); + // const acknowledgements = require(`${__dirname}/../configs/acknowledgements.json`); + async function resolveStaffInformation(id: string) { + return client.db.Staff.findOne({ userID: id }); // acknowledgements.find((m) => m.id === id); } await client.guilds.get(client.config.guildID).fetchAllMembers(); const members = client.guilds.get(client.config.guildID).members.map((m) => m); @@ -128,7 +128,7 @@ export default async function departmentPager(client: Client): Promise