eventlog: add params for from and to date
This commit is contained in:
@@ -290,7 +290,6 @@ async function del(domain, auditSource) {
|
||||
];
|
||||
|
||||
const [error, results] = await safe(database.transaction(queries));
|
||||
console.dir(error);
|
||||
if (error && error.sqlCode === 'ER_ROW_IS_REFERENCED_2') {
|
||||
if (error.message.includes('mailboxes_aliasDomain_constraint')) throw new BoxError(BoxError.CONFLICT, 'Domain is in use in a mailbox, list or an alias');
|
||||
if (error.message.includes('mailboxes_domain_constraint')) throw new BoxError(BoxError.CONFLICT, 'Domain is in use in a mailbox, list or an alias');
|
||||
|
||||
Reference in New Issue
Block a user