@mx-cartographer/experiences 6.0.17-alpha-ram4-error-budgets-empty-state → 6.0.17-alpha-ram6-error-budgets-empty-state

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -3992,7 +3992,7 @@ class Mr {
3992
3992
  constructor(t, i) {
3993
3993
  this.fetchInstance = new Ae(t, i);
3994
3994
  }
3995
- addBudget = async (t, i, n = null) => this.fetchInstance.post(Q.BUDGETS, {
3995
+ addBudget = async (t, i, n = null) => this.fetchInstance.post(`${Q.BUDGETS}/add`, {
3996
3996
  amount: i,
3997
3997
  category_guid: t.guid,
3998
3998
  category_name: t.name,
@@ -4002,7 +4002,7 @@ class Mr {
4002
4002
  throw i;
4003
4003
  });
4004
4004
  getBudgets = async () => this.fetchInstance.get(Q.BUDGETS).then((t) => t.budgets).catch((t) => t);
4005
- updateBudget = async (t) => this.fetchInstance.put(`${Q.BUDGETS}/${t.guid}/hell`, t).then((i) => i.budget).catch((i) => {
4005
+ updateBudget = async (t) => this.fetchInstance.put(`${Q.BUDGETS}/${t.guid}`, t).then((i) => i.budget).catch((i) => {
4006
4006
  throw i;
4007
4007
  });
4008
4008
  }
@@ -4155,10 +4155,10 @@ class Id {
4155
4155
  try {
4156
4156
  for (const n of t) {
4157
4157
  const r = this.budgets.find((o) => o.category_guid === n.guid);
4158
- r ? await this.api.updateBudget({
4158
+ r ? (console.log("insiode add budgets"), await this.api.updateBudget({
4159
4159
  ...r,
4160
4160
  amount: n.totalAverageAmount
4161
- }) : await this.api.addBudget(n, n.totalAverageAmount);
4161
+ })) : await this.api.addBudget(n, n.totalAverageAmount);
4162
4162
  }
4163
4163
  const i = this.budgets.filter(
4164
4164
  (n) => !t.find((r) => r.guid === n.category_guid)