@opfr/services 0.30.5 → 0.30.6
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
|
@@ -9444,11 +9444,22 @@ const cs = ((js = T) == null ? void 0 : js.UserShop) || F("UserShop", Hr), My =
|
|
|
9444
9444
|
await My(t, [
|
|
9445
9445
|
{
|
|
9446
9446
|
$set: {
|
|
9447
|
-
|
|
9447
|
+
limit: {
|
|
9448
9448
|
$cond: {
|
|
9449
9449
|
if: { $eq: ["$lastShopId", s] },
|
|
9450
|
-
then: {
|
|
9451
|
-
|
|
9450
|
+
then: {
|
|
9451
|
+
$mergeObjects: [
|
|
9452
|
+
"$limit",
|
|
9453
|
+
{
|
|
9454
|
+
[a]: {
|
|
9455
|
+
$add: [{ $ifNull: [`$limit.${a}`, 0] }, n]
|
|
9456
|
+
}
|
|
9457
|
+
}
|
|
9458
|
+
]
|
|
9459
|
+
},
|
|
9460
|
+
else: {
|
|
9461
|
+
[a]: n
|
|
9462
|
+
}
|
|
9452
9463
|
}
|
|
9453
9464
|
},
|
|
9454
9465
|
lastShopId: s
|