Skip to content

Commit

Permalink
fix: remove apiKey from script and added tech user token for config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun-KumarH committed Jun 28, 2024
1 parent d0e1b3a commit 9f32c48
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"entry": "http://localhost:5000/graphql",
"job_prefix": "job_",
"data_directory": "./datasets/",
"job_directory": "jobs/"
"job_directory": "jobs/",
"access_token": "1a4c6789-6435-487a-9308-64d06384acf9"
}
}
2 changes: 1 addition & 1 deletion dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async function importData() {
.option(
'-t, --token <access_token>',
'access token to use for communications',
process.env.ACCESS_TOKEN ?? CONFIG?.access_token
CONFIG?.access_token
)
.option('-i, --ignore', 'ignore errors and don\'t stop', false)
.option('-v, --verbose', 'verbose output', false)
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
},
"scripts": {
"build": "tsc -d -P tsconfig.objects.json",
"env:token": "echo $(docker logs --tail 2000 restorecommerce_facade_srv 2> /dev/null | grep 'Bootstrap API Key is:' | tail -1 | awk '{print \"ACCESS_TOKEN=\"$7}') > .env && cat .env",
"import": "npm-run-all import:system import:demoshop",
"import:system": "npm-run-all import:system:master import:system:identity import:system:rules import:system:extra",
"import:system:master": "node dataset.js import -d system -j master",
Expand Down

0 comments on commit 9f32c48

Please sign in to comment.