Merge branch 'dev'
commit
f5db179868
|
@ -129,6 +129,8 @@
|
||||||
"id": "241361691730903040",
|
"id": "241361691730903040",
|
||||||
"dept": "Associate",
|
"dept": "Associate",
|
||||||
"emailAddress": "sterben@staff.libraryofcode.org",
|
"emailAddress": "sterben@staff.libraryofcode.org",
|
||||||
|
"gitlab": "https://gitlab.libraryofcode.org/Sterben",
|
||||||
|
"github": "https://github.com/sterben6",
|
||||||
"bio": "im bored"
|
"bio": "im bored"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -84,7 +84,7 @@ export default async function departmentPager(client: Client): Promise<NodeJS.Ti
|
||||||
return acknowledgements.find((m) => m.id === id);
|
return acknowledgements.find((m) => m.id === id);
|
||||||
}
|
}
|
||||||
await client.guilds.get(client.config.guildID).fetchAllMembers();
|
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) {
|
for (const member of members) {
|
||||||
const pager = await client.db.PagerNumber.findOne({ individualAssignID: member.id }).lean().exec();
|
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) {
|
for (const member of members) {
|
||||||
let pager = await client.db.PagerNumber.findOne({ individualAssignID: member.id }).lean().exec();
|
let pager = await client.db.PagerNumber.findOne({ individualAssignID: member.id }).lean().exec();
|
||||||
// Directors
|
// Directors
|
||||||
|
|
Loading…
Reference in New Issue