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
+3 -3
View File
@@ -39,16 +39,16 @@ function create() {
if (result.status !== 200) return [result];
return [null, result.body];
},
async mailboxCount(domain) {
async stats(domain) {
let result;
try {
result = await fetcher.get(`${API_ORIGIN}/api/v1/mail/${domain}/mailbox_count`, { access_token: accessToken });
result = await fetcher.get(`${API_ORIGIN}/api/v1/mail/${domain}/stats`, { access_token: accessToken });
} catch (e) {
return [e];
}
if (result.status !== 200) return [result];
return [null, result.body.count];
return [null, result.body];
},
async setCatchallAddresses(domain, addresses) {
let result;