Skip to content
This repository was archived by the owner on Apr 15, 2021. It is now read-only.

Commit 80a378b

Browse files
committed
fix default arguments
1 parent 3aae20f commit 80a378b

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

RestClient.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,9 +635,20 @@ class RestClient {
635635
);
636636
}
637637

638-
getDropData(dropId) {
638+
getDropData(
639+
dropId,
640+
{limit = 100, offset = 0, applyUserFilters = true} = {},
641+
) {
639642
return this.login().then(() =>
640-
this.agent.get(`${this.apiV2Url}drops/${dropId}/reportData`),
643+
this.agent.get(
644+
`${
645+
this.apiV2Url
646+
}drops/${dropId}/reportData?${querystring.stringify({
647+
limit,
648+
offset,
649+
applyUserFilters,
650+
})}`,
651+
),
641652
);
642653
}
643654

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "2.14.0",
2+
"version": "2.14.1",
33
"name": "@vizydrop/test-utils",
44
"license": "MIT",
55
"dependencies": {

0 commit comments

Comments
 (0)