rework mail domain stats

We can now show list count, alias count as well in the mail domains UI
This commit is contained in:
Girish Ramakrishnan
2025-12-05 12:54:48 +01:00
parent 425e196dfc
commit f714cd66f7
9 changed files with 106 additions and 163 deletions
+2 -2
View File
@@ -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) {