@opfr/services 0.29.10 → 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({
|