@opfr/services 0.26.0 → 0.26.1
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
|
@@ -8774,7 +8774,10 @@ es.post("findOneAndUpdate", async function(t) {
|
|
|
8774
8774
|
});
|
|
8775
8775
|
var Ts;
|
|
8776
8776
|
const Gt = ((Ts = R) == null ? void 0 : Ts.UserOrnaments) || T("UserOrnaments", es), se = async (t, a) => {
|
|
8777
|
-
await Gt.
|
|
8777
|
+
await Gt.findOneAndUpdate({ user: t }, a, {
|
|
8778
|
+
upsert: !0,
|
|
8779
|
+
returnDocument: "after"
|
|
8780
|
+
});
|
|
8778
8781
|
}, ts = async (t, a) => {
|
|
8779
8782
|
await se(t, { $addToSet: { unlockedTitles: a } });
|
|
8780
8783
|
}, gh = async (t, a) => {
|