diff --git a/src/main/java/io/kidsfirst/core/service/SecretService.java b/src/main/java/io/kidsfirst/core/service/SecretService.java index 5d0c860..e33d532 100644 --- a/src/main/java/io/kidsfirst/core/service/SecretService.java +++ b/src/main/java/io/kidsfirst/core/service/SecretService.java @@ -126,7 +126,7 @@ public Mono fetchDecryptAndDecompress(final String userId, final String public Mono fetchAndDecryptNotExpired(final String userId, final String service) { return getSecret(service, userId) .filter(Secret::notExpired) - .flatMap(s -> kmsService.decrypt(s.getSecret())); + .flatMap(s -> kmsService.decryptAndDecompress(s.getSecret())); }