Skip to content

Commit

Permalink
Merge pull request #11 from umccr/feat/git-force
Browse files Browse the repository at this point in the history
fix: environment override error
  • Loading branch information
mmalenic authored Feb 18, 2025
2 parents 4e63aa5 + a3ee253 commit 794bf5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/htsget-lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,11 @@ export class HtsgetLambda extends Construct {
.join(",");
locationsEnv = `[${locationsEnv}]`;

if (locationsEnv == "[]") {
if (
locationsEnv == "[]" &&
(config.environment_override === undefined ||
config.environment_override["HTSGET_LOCATIONS"] === undefined)
) {
throw new Error(
"no locations configured, htsget-rs wouldn't be able to access any files!",
);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@
"watch": "tsc -w",
"typedoc": "typedoc"
},
"version": "0.8.2"
"version": "0.8.3"
}

0 comments on commit 794bf5a

Please sign in to comment.