pager fixes
parent
4b2de2175c
commit
ebd1a3ab24
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue