speedly 1.2.36 → 1.2.37
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/db/db.js +1 -0
- package/dist/esm/db/db.js +1 -0
- package/package.json +1 -1
package/dist/cjs/db/db.js
CHANGED
|
@@ -205,6 +205,7 @@ const usingMongoDb = (collectionName, config = { type: 'external' }) => {
|
|
|
205
205
|
const limit = parseInt(Array.isArray(req.query.limit) ? String(req.query.limit[0]) : typeof req.query.limit === 'string' ? req.query.limit : req.query.limit !== undefined ? String(req.query.limit) : '') ||
|
|
206
206
|
configs.pagination?.quantity ||
|
|
207
207
|
20;
|
|
208
|
+
console.log('db', 261, model, config.path);
|
|
208
209
|
const totalPages = Math.ceil((await model.countDocuments(match)) / limit);
|
|
209
210
|
detail = {
|
|
210
211
|
...detail,
|
package/dist/esm/db/db.js
CHANGED
|
@@ -205,6 +205,7 @@ const usingMongoDb = (collectionName, config = { type: 'external' }) => {
|
|
|
205
205
|
const limit = parseInt(Array.isArray(req.query.limit) ? String(req.query.limit[0]) : typeof req.query.limit === 'string' ? req.query.limit : req.query.limit !== undefined ? String(req.query.limit) : '') ||
|
|
206
206
|
configs.pagination?.quantity ||
|
|
207
207
|
20;
|
|
208
|
+
console.log('db', 261, model, config.path);
|
|
208
209
|
const totalPages = Math.ceil((await model.countDocuments(match)) / limit);
|
|
209
210
|
detail = {
|
|
210
211
|
...detail,
|