Skip to content

Commit

Permalink
Fetch env var
Browse files Browse the repository at this point in the history
  • Loading branch information
pinakipb2 committed Aug 3, 2024
1 parent bb62edb commit 1d4aeef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private String toDocument(SystemMetadata systemMetadata, String urn, String aspe

private String toDocId(@Nonnull final String urn, @Nonnull final String aspect) {
String rawDocId = urn + DOC_DELIMETER + aspect;

String hashAlgo = System.getenv("ELASTIC_ID_HASH_ALGO");
try {
byte[] bytesOfRawDocID = rawDocId.getBytes(StandardCharsets.UTF_8);
MessageDigest md = MessageDigest.getInstance(hashAlgo);
Expand Down

0 comments on commit 1d4aeef

Please sign in to comment.