speedly 2.0.42 → 2.0.43
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/cjs/kit/db/db.js +1 -7
- package/dist/esm/kit/db/db.js +1 -7
- package/package.json +1 -1
package/dist/cjs/kit/db/db.js
CHANGED
|
@@ -265,13 +265,7 @@ const usingMongoDb = (collectionName, config = { type: "external" }) => {
|
|
|
265
265
|
const pageNumAgg = parseInt(typeof pageStrAgg === "string" ? pageStrAgg : "") || 1;
|
|
266
266
|
const limitNumAgg = parseInt(typeof limitStrAgg === "string" ? limitStrAgg : "") || 20;
|
|
267
267
|
realTimeQueries.push({ $skip: (pageNumAgg - 1) * limitNumAgg }, {
|
|
268
|
-
$limit:
|
|
269
|
-
? String(req.query.limit[0])
|
|
270
|
-
: typeof req.query.limit === "string"
|
|
271
|
-
? req.query.limit
|
|
272
|
-
: req.query.limit !== undefined
|
|
273
|
-
? String(req.query.limit)
|
|
274
|
-
: ""),
|
|
268
|
+
$limit: limitNumAgg
|
|
275
269
|
});
|
|
276
270
|
}
|
|
277
271
|
else if (req.query.limit && queryState.action == "aggregate") {
|
package/dist/esm/kit/db/db.js
CHANGED
|
@@ -265,13 +265,7 @@ const usingMongoDb = (collectionName, config = { type: "external" }) => {
|
|
|
265
265
|
const pageNumAgg = parseInt(typeof pageStrAgg === "string" ? pageStrAgg : "") || 1;
|
|
266
266
|
const limitNumAgg = parseInt(typeof limitStrAgg === "string" ? limitStrAgg : "") || 20;
|
|
267
267
|
realTimeQueries.push({ $skip: (pageNumAgg - 1) * limitNumAgg }, {
|
|
268
|
-
$limit:
|
|
269
|
-
? String(req.query.limit[0])
|
|
270
|
-
: typeof req.query.limit === "string"
|
|
271
|
-
? req.query.limit
|
|
272
|
-
: req.query.limit !== undefined
|
|
273
|
-
? String(req.query.limit)
|
|
274
|
-
: ""),
|
|
268
|
+
$limit: limitNumAgg
|
|
275
269
|
});
|
|
276
270
|
}
|
|
277
271
|
else if (req.query.limit && queryState.action == "aggregate") {
|