Skip to content

Commit

Permalink
Fix custom config path
Browse files Browse the repository at this point in the history
  • Loading branch information
gilsonmandalogo committed Oct 15, 2024
1 parent 837bfec commit 7ca20d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ const exportFile = async (options) => {
}
}

function validateConfig(path) {
const file = fs.readFileSync(path.resolve(path), 'utf-8')
function validateConfig(configPath) {
const file = fs.readFileSync(path.resolve(configPath), 'utf-8')
const parsed = JSON.parse(file)
const keys = ['api-token', 'profile', 'locale', 'pdf-locale', 'currency']

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wise-statements",
"version": "4.1.1",
"version": "4.1.2",
"main": "app.js",
"repository": "[email protected]:gilsonmandalogo/wise-statements.git",
"author": "Gilson Júnior <[email protected]>",
Expand Down

0 comments on commit 7ca20d5

Please sign in to comment.