rework mail domain stats
We can now show list count, alias count as well in the mail domains UI
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user