interval fix

master
Matthew 2021-07-05 23:40:40 -04:00
parent 47aa29fa93
commit 8731dfcf61
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ export default async function departmentPager(client: Client): Promise<NodeJS.Ti
// ADD TO ALL STAFF MAILING LIST // ADD TO ALL STAFF MAILING LIST
if ((member.roles.includes('453689940140883988') || member.roles.includes('701481967149121627')) && !pager) { if ((member.roles.includes('453689940140883988') || member.roles.includes('701481967149121627')) && !pager) {
const acknowledgement = await resolveStaffInformation(member.id); const acknowledgement = await resolveStaffInformation(member.id);
await client.util.addUserToMailingList(acknowledgement.emailAddress, 'all-staff'); await client.util.addUserToMailingList(acknowledgement?.emailAddress, 'all-staff');
} }
// Directors // Directors
if (!pager && member.roles.includes('662163685439045632')) { if (!pager && member.roles.includes('662163685439045632')) {