inibase 1.2.17 → 1.2.18
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.js +1 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1294,7 +1294,6 @@ export default class Inibase {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
const LineNumberDataObj = await this.applyCriteria(tableName, options, structuredClone(where));
|
|
1296
1296
|
if (LineNumberDataObj) {
|
|
1297
|
-
this.totalItems.set(`${tableName}-*`, Object.keys(LineNumberDataObj).length);
|
|
1298
1297
|
if (onlyLinesNumbers)
|
|
1299
1298
|
return onlyOne
|
|
1300
1299
|
? Number(Object.keys(LineNumberDataObj)[0])
|
|
@@ -1322,7 +1321,7 @@ export default class Inibase {
|
|
|
1322
1321
|
...(({ columns, ...restOfOptions }) => restOfOptions)(options),
|
|
1323
1322
|
perPage: Array.isArray(RETURN) ? RETURN.length : 1,
|
|
1324
1323
|
totalPages: options.perPage < 0
|
|
1325
|
-
?
|
|
1324
|
+
? 1
|
|
1326
1325
|
: Math.ceil(greatestTotalItems / options.perPage),
|
|
1327
1326
|
total: greatestTotalItems,
|
|
1328
1327
|
};
|