Merge branch 'dev'

pull/29/head
Matthew 2020-07-19 20:23:12 -04:00
commit f5db179868
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
2 changed files with 3 additions and 2 deletions

View File

@ -129,6 +129,8 @@
"id": "241361691730903040",
"dept": "Associate",
"emailAddress": "sterben@staff.libraryofcode.org",
"gitlab": "https://gitlab.libraryofcode.org/Sterben",
"github": "https://github.com/sterben6",
"bio": "im bored"
},
{

View File

@ -84,7 +84,7 @@ export default async function departmentPager(client: Client): Promise<NodeJS.Ti
return acknowledgements.find((m) => m.id === id);
}
await client.guilds.get(client.config.guildID).fetchAllMembers();
const members = client.guilds.get(client.config.guildID).members.values();
const members = client.guilds.get(client.config.guildID).members.map((m) => m);
for (const member of members) {
const pager = await client.db.PagerNumber.findOne({ individualAssignID: member.id }).lean().exec();
@ -115,7 +115,6 @@ export default async function departmentPager(client: Client): Promise<NodeJS.Ti
}
}
// const takenPagers = new Set<string>();
for (const member of members) {
let pager = await client.db.PagerNumber.findOne({ individualAssignID: member.id }).lean().exec();
// Directors