mirror of
https://github.com/zadam/trilium.git
synced 2025-02-22 14:03:36 +08:00
fix retrieving "many rows", closes #525
This commit is contained in:
parent
80fb89b794
commit
75ef766649
2 changed files with 2 additions and 2 deletions
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "trilium",
|
"name": "trilium",
|
||||||
"version": "0.31.4",
|
"version": "0.31.5",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -92,7 +92,7 @@ async function getManyRows(query, params) {
|
||||||
let results = [];
|
let results = [];
|
||||||
|
|
||||||
while (params.length > 0) {
|
while (params.length > 0) {
|
||||||
const curParams = params.slice(0, Math.max(params.length, PARAM_LIMIT));
|
const curParams = params.slice(0, Math.min(params.length, PARAM_LIMIT));
|
||||||
params = params.slice(curParams.length);
|
params = params.slice(curParams.length);
|
||||||
|
|
||||||
let i = 1;
|
let i = 1;
|
||||||
|
|
Loading…
Reference in a new issue