changes to webhook api

merge-requests/4/head
Matthew 2020-07-24 22:57:30 -04:00
parent 2f06294192
commit 97d6b8b1bb
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ export default class Webhook extends Route {
if (req.headers.authorization !== this.server.security.keys.iv.toString('base64')) return res.status(401).json({ code: this.constants.codes.UNAUTHORIZED, message: this.constants.codes.UNAUTHORIZED });
const embed = new RichEmbed();
embed.setTitle('Service Request');
embed.setDescription(req.body.url);
embed.setDescription(`https://staff.libraryofcode.org/browse/${req.body.key}\n${req.body.url}`);
embed.setColor('#FF00FF');
embed.addField('Ticket Number', req.body.key, true);
embed.addField('Reporter', req.body.reporter, true);