Add email_error type

This commit is contained in:
Girish Ramakrishnan
2019-10-15 11:48:20 -07:00
parent 122a987d61
commit f6377fd1c6
+1 -1
View File
@@ -20,7 +20,7 @@ function createTicket(req, res, next) {
if (!custom.spec().support.submitTickets) return next(new HttpError(405, 'feature disabled by admin'));
const VALID_TYPES = [ 'feedback', 'ticket', 'app_missing', 'app_error', 'upgrade_request' ];
const VALID_TYPES = [ 'feedback', 'ticket', 'app_missing', 'app_error', 'upgrade_request', 'email_error' ];
if (typeof req.body.type !== 'string' || !req.body.type) return next(new HttpError(400, 'type must be string'));
if (VALID_TYPES.indexOf(req.body.type) === -1) return next(new HttpError(400, 'unknown type'));