dobo 2.30.2 → 2.30.3

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.
@@ -122,7 +122,7 @@ async function memoryDriverFactory () {
122
122
  const { data: count = 0 } = await this.countRecord(model, filter, options)
123
123
  const cursor = this._getCursor(model, filter)
124
124
  if (sort) cursor.sort(sort)
125
- if (limit && skip) cursor.skip(skip).limit(limit)
125
+ cursor.skip(skip).limit(limit)
126
126
  let result = { data: cursor.all(), page, limit, count, pages: Math.ceil(count / limit) }
127
127
  if (!options.count) result = omit(result, ['count', 'pages'])
128
128
  return result
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dobo",
3
- "version": "2.30.2",
3
+ "version": "2.30.3",
4
4
  "description": "DBMS for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -5,6 +5,7 @@
5
5
  - [2.30.2] Bug fix in ```model.findAllRecord()```
6
6
  - [2.30.2] Bug fix in ```memory.findAllRecord()```
7
7
  - [2.30.2] Bug fix in ```collect-models.js```
8
+ - [2.30.3] Bug fix in ```memory.findRecord()```
8
9
 
9
10
  ## 2026-06-12
10
11