Skip to content

Commit

Permalink
Bugfix (#40)
Browse files Browse the repository at this point in the history
* Fix to new SsToJson

* Replace `SsToJson` with `this`
  • Loading branch information
abetomo committed Aug 16, 2017
1 parent c87007c commit 01a410f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/ss2json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if (!process.argv.slice(2).length) {
process.exit(255)
}

SsToJson.convert({
(new SsToJson()).convert({
jsonPath: program.json,
spreadsheetId: program.id,
sheetName: program.name
Expand Down
2 changes: 1 addition & 1 deletion lib/ss_to_json.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class SsToJson {
sheetName: params.sheetName
})
}).then((data) => {
return SsToJson._arrayToJson(data.values)
return this._arrayToJson(data.values)
})
}

Expand Down

0 comments on commit 01a410f

Please sign in to comment.