@mx-cartographer/experiences 3.8.0-alpha.al3 → 3.8.0-alpha.al4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +4 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -9631,7 +9631,7 @@ class Tr {
|
|
9631
9631
|
}
|
9632
9632
|
getAccounts = async () => this.fetchInstance.get(M.ACCOUNTS).then((e) => e.accounts).catch((e) => e);
|
9633
9633
|
getMembers = async () => this.fetchInstance.get(M.MEMBERS).then((e) => e.members).catch((e) => e);
|
9634
|
-
getMonthlyAccountBalances = async (e) => this.fetchInstance.get(`${M.ACCOUNTS}
|
9634
|
+
getMonthlyAccountBalances = async (e) => this.fetchInstance.get(`${M.ACCOUNTS}/${e}/monthly_account_balances`).then((n) => n.monthly_account_balances).catch((n) => n);
|
9635
9635
|
}
|
9636
9636
|
const Wu = (A, e) => e.filter((n) => {
|
9637
9637
|
const { is_closed: a, is_deleted: r, is_hidden: i, is_manual: o } = n;
|
@@ -9654,7 +9654,9 @@ class Yu {
|
|
9654
9654
|
try {
|
9655
9655
|
const e = Wu(await this.api.getMembers(), await this.api.getAccounts());
|
9656
9656
|
console.log(e);
|
9657
|
-
const n = e.map((i) => this.api.getMonthlyAccountBalances(i.guid))
|
9657
|
+
const n = e.map((i) => this.api.getMonthlyAccountBalances(i.guid));
|
9658
|
+
console.log(n);
|
9659
|
+
const r = await (await Promise.all(n)).reduce(this._flattenBalances, []);
|
9658
9660
|
Z(() => {
|
9659
9661
|
this.netWorthData = {
|
9660
9662
|
accounts: e,
|