mailer: fix crash

This commit is contained in:
Girish Ramakrishnan
2021-08-22 09:40:06 -07:00
parent ba2475dc7e
commit 95af5ef138
2 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -1122,7 +1122,7 @@ async function sendTestMail(domain, to) {
const result = await getDomain(domain);
if (!result) throw new BoxError(BoxError.NOT_FOUND, 'mail domain not found');
await mailer.sendTestMail(result.domain);
await mailer.sendTestMail(result.domain, to);
}
async function listMailboxes(domain, search, page, perPage) {