Skip to content

Commit

Permalink
Rename identify-ids-by-query script
Browse files Browse the repository at this point in the history
  • Loading branch information
nonword committed Feb 6, 2025
1 parent a32c590 commit ba72f31
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* nyplSource value (see example usage below):
*
* Usage:
* node scripts/identify-ids-by-query --envfile [path to .env] [--outfile out.csv] --query '{"query": {
* node scripts/identify-ids-by-es-query --envfile [path to .env] [--outfile out.csv] --query '{"query": {
* "bool": {
* "must": [
* {
Expand Down Expand Up @@ -185,7 +185,7 @@ const run = async () => {
}
console.log('fs: ', process.argv[1])

const isCalledViaCommandLine = /scripts\/identify-ids-by-query(.js)?/.test(fs.realpathSync(process.argv[1]))
const isCalledViaCommandLine = /scripts\/identify-ids-by-es-query(.js)?/.test(fs.realpathSync(process.argv[1]))
if (isCalledViaCommandLine) {
run()
}

0 comments on commit ba72f31

Please sign in to comment.