Skip to content

Commit a56a40e

Browse files
authored
Merge pull request #18 from SlicingDice/feature/correct-data-extraction-validator
Correct data extraction validator
2 parents 2725eb2 + d8b2875 commit a56a40e

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## [2.0.1]
4+
### Updated
5+
- Correct data extraction validator to accept columns: all
6+
37
## [2.0.0]
48
### Updated
59
- Update `existsEntity()` method to receive `table` as parameter

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)