Skip to content

Commit 79f5e56

Browse files
authored
Merge pull request #12 from AgentEpsilon/fix-data-list-ids
added check to data.list() in case of no ids
2 parents fa2438d + ef764a1 commit 79f5e56

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/data.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ class Content extends Lib {
2020
if(typeof name==='undefined')
2121
throw this.throwError('data.list()','a name')
2222

23-
params.ids = this.parent.utils.makeCSV(params.ids)
23+
if(params.ids)
24+
params.ids = this.parent.utils.makeCSV(params.ids)
2425

2526
return this.req(`/${name}`, params)
2627
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)