interval fix

merge-requests/28/head
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
if ((member.roles.includes('453689940140883988') || member.roles.includes('701481967149121627')) && !pager) {
const acknowledgement = await resolveStaffInformation(member.id);
await client.util.addUserToMailingList(acknowledgement.emailAddress, 'all-staff');
await client.util.addUserToMailingList(acknowledgement?.emailAddress, 'all-staff');
}
// Directors
if (!pager && member.roles.includes('662163685439045632')) {