Add mailboxName to app configure route

Fixes #558
This commit is contained in:
Girish Ramakrishnan
2018-05-24 16:25:32 -07:00
parent 87c46fe3ea
commit bac3ba101e
3 changed files with 12 additions and 3 deletions

View File

@@ -170,6 +170,8 @@ function configureApp(req, res, next) {
if (data.robotsTxt && typeof data.robotsTxt !== 'string') return next(new HttpError(400, 'robotsTxt must be a string'));
if ('mailboxName' in data && typeof data.mailboxName !== 'string') return next(new HttpError(400, 'mailboxName must be a string'));
debug('Configuring app id:%s data:%j', req.params.id, data);
apps.configure(req.params.id, data, auditSource(req), function (error) {