rework mail domain stats
We can now show list count, alias count as well in the mail domains UI
This commit is contained in:
@@ -57,10 +57,10 @@ async function refreshUsage() {
|
||||
domain.relayProvider = result.relay ? result.relay.provider : 'unset';
|
||||
|
||||
// do this even if no outbound since people forget to remove mailboxes
|
||||
[error, result] = await mailModel.mailboxCount(domain.domain);
|
||||
[error, result] = await mailModel.stats(domain.domain);
|
||||
if (error) console.error(error);
|
||||
|
||||
domain.mailboxCount = result;
|
||||
domain.mailboxCount = result.mailboxCount;
|
||||
|
||||
// this may temporarily fail while the mail server is restarting
|
||||
while (true) {
|
||||
|
||||
Reference in New Issue
Block a user