Skip to content

Commit

Permalink
Reset script: Use all available concordance URIs for -c argument
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Oct 28, 2024
1 parent 93168e7 commit 83e9823
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bin/reset.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,12 @@ const allTypes = Object.keys(services)
filterUris = [cli.flags.scheme]
}
} else if (cli.flags.concordance) {
// Don't support multiple URIs for concordances
filterUris = [cli.flags.concordance]
const concordance = await services.concordance.getConcordance(cli.flags.concordance)
if (concordance) {
filterUris = [concordance.uri].concat(concordance.identifier || [])
} else {
filterUris = [cli.flags.concordance]
}
}
const toBeDeleted = {}
for (let type of types) {
Expand Down

0 comments on commit 83e9823

Please sign in to comment.