Skip to content

Commit a4a764d

Browse files
committed
Correct data extraction validator
1 parent b2ba672 commit a4a764d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,5 @@
3131
"async": "^2.0.1",
3232
"sleep": "^4.0.0"
3333
},
34-
"dependencies": {
35-
}
34+
"dependencies": {}
3635
}

src/slicer.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@
193193
// Check columns property, columns should have a maximum of 10 itens
194194
if (key == "columns") {
195195
if (value.constructor != Array) {
196-
throw new errors.InvalidQueryException("The key 'columns' in query has a invalid value.");
196+
if (value != 'all') {
197+
throw new errors.InvalidQueryException("The key 'columns' in query has a invalid value.");
198+
}
197199
}
198200
else {
199201
if (value.length > 10) {

0 commit comments

Comments
 (0)