@opfr/services 0.29.9 → 0.29.11

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
@@ -8641,7 +8641,7 @@ ft.index({ user: 1 });
8641
8641
  ft.index({ "xp.amount": -1 });
8642
8642
  ft.index({ berry: -1 });
8643
8643
  ft.post("findOneAndUpdate", async function(t) {
8644
- await Qm(t), await Pm(t), await wr(t.user._id), t.hp <= 0 && await Kn(t.user._id);
8644
+ await Qm(t), await Pm(t), t.berry === 0 && await wr(t.user._id), t.hp <= 0 && await Kn(t.user._id);
8645
8645
  });
8646
8646
  var As;
8647
8647
  const Ee = ((As = T) == null ? void 0 : As.UserMeta) || F("UserMeta", ft), br = async (t) => await Ee.create({
@@ -9974,7 +9974,7 @@ const mt = ((Hs = T) == null ? void 0 : Hs.Crew) || F("Crew", Zt), zy = (t, a) =
9974
9974
  }
9975
9975
  }
9976
9976
  ]))[0], Zy = async () => mt.aggregate([
9977
- { $sort: { "meta.xp.amount": -1 } },
9977
+ { $sort: { "meta.xp": -1 } },
9978
9978
  { $limit: 10 }
9979
9979
  ]), Sg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9980
9980
  __proto__: null,