Skip to content

Commit 0b630a9

Browse files
committed
fix wv findall bug
1 parent 8f4ac40 commit 0b630a9

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @proofgeist/fmdapi
22

3+
## 3.3.6
4+
5+
### Patch Changes
6+
7+
- fix wv find
8+
39
## 3.3.5
410

511
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@proofgeist/fmdapi",
3-
"version": "3.3.5",
3+
"version": "3.3.6",
44
"description": "FileMaker Data API client",
55
"main": "dist/index.js",
66
"repository": "git@github.com:proofgeist/fm-dapi.git",

src/wv.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ function DataApi<
351351
): Promise<FMRecord<T, U>[]> {
352352
let runningData: GetResponse<T, U>["data"] = [];
353353
const limit = args.limit ?? 100;
354-
const offset = args.offset ?? 1;
354+
let offset = args.offset ?? 1;
355355
// eslint-disable-next-line no-constant-condition
356356
while (true) {
357357
const data = await find<T, U>({ ...args, ignoreEmptyResult: true });
@@ -361,7 +361,7 @@ function DataApi<
361361
runningData.length >= data.dataInfo.foundCount
362362
)
363363
break;
364-
args.offset = offset + limit;
364+
offset = offset + limit;
365365
}
366366
return runningData;
367367
}

0 commit comments

Comments
 (0)