Merge branch 'dev'

pull/29/head
Matthew 2021-01-12 02:14:28 -05:00
commit 949d2469a2
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
2 changed files with 5 additions and 0 deletions

View File

@ -104,6 +104,10 @@ export default class Queue {
} else {
embed.setColor('#eeeeee');
}
const chan = await this.client.getDMChannel(job.data.userID);
if (chan && application.token) {
chan.createMessage(`__**Application Decision Document**__\n*This document provides detailed information about the decision given to you by EDS.*\n\nhttps://eds.libraryofcode.org/dec/${application.token}`);
}
embed.setDescription(`This application was processed by __${application.processedBy}__ on behalf of the vendor, department, or service who operates this application. Please contact the vendor for further information about your application if needed.`);
embed.addField('Status', application.decision, true);
embed.addField('User ID', job.data.userID, true);

View File

@ -147,6 +147,7 @@ export default class Apply extends Command {
decision: data.decision,
id: data.id,
processedBy: data.processedBy,
token: data.token,
};
} catch (err) {
const error = <AxiosError>err;