fixed evaluated filters

This commit is contained in:
Jan Prochazka
2022-03-31 15:15:15 +02:00
parent 25380ee0a8
commit 5aac142e4c
12 changed files with 90 additions and 30 deletions

View File

@@ -163,6 +163,7 @@ class JsonLinesDatastore {
const res = [];
await lock.acquire('reader', async () => {
await this._ensureReader(offset, filter);
// console.log(JSON.stringify(this.currentFilter, undefined, 2));
for (let i = 0; i < limit; i += 1) {
const line = await this._readLine(true);
if (line == null) break;