c2-mongoose 2.1.204 → 2.1.206
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/flow/SearchFlow.js
CHANGED
|
@@ -267,7 +267,7 @@ var SearchFlow = /** @class */ (function () {
|
|
|
267
267
|
else: { $ceil: { $divide: ['$total', this.limit] } }
|
|
268
268
|
}
|
|
269
269
|
},
|
|
270
|
-
startIndex: { $subtract: [{ $multiply: [this.page, this.limit] }, this.limit] },
|
|
270
|
+
startIndex: { $subtract: [{ $multiply: [this.page, this.limit] }, this.limit - 1] },
|
|
271
271
|
endIndex: { $multiply: [this.page, this.limit] }
|
|
272
272
|
}
|
|
273
273
|
});
|
package/package.json
CHANGED
package/src/flow/SearchFlow.ts
CHANGED
|
@@ -255,7 +255,7 @@ abstract class SearchFlow {
|
|
|
255
255
|
else: { $ceil: { $divide: ['$total', this.limit] } }
|
|
256
256
|
}
|
|
257
257
|
},
|
|
258
|
-
startIndex: { $subtract: [ { $multiply: [this.page, this.limit] }, this.limit ] },
|
|
258
|
+
startIndex: { $subtract: [ { $multiply: [this.page, this.limit] }, this.limit - 1 ] },
|
|
259
259
|
endIndex: { $multiply: [this.page, this.limit] }
|
|
260
260
|
}
|
|
261
261
|
})
|