Skip to content

Commit

Permalink
eventuate-clients#9: Enhancing the Eventuate Java Client According GD…
Browse files Browse the repository at this point in the history
…PR. Fixing decription.
  • Loading branch information
dartartem committed Apr 17, 2018
1 parent 5701aa7 commit 21b373c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public <T extends Aggregate<T>> CompletableFuture<EntityWithMetadata<T>> find(Cl
.map(event ->
AggregateCrudMapping.toEventWithMetadata(event, json -> findOptions
.flatMap(FindOptions::getEncryptionKey)
.map(k -> eventDataEncryptor.decrypt(k, json))
.map(k -> EncryptedEventData.isEventDataStringEncrypted(json) ? eventDataEncryptor.decrypt(k, json) : json)
.orElse(json)))
.collect(Collectors.toList());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public <T extends Aggregate<T>> EntityWithMetadata<T> find(Class<T> clasz, Strin
.map(event ->
AggregateCrudMapping.toEventWithMetadata(event, json -> findOptions
.flatMap(FindOptions::getEncryptionKey)
.map(k -> eventDataEncryptor.decrypt(k, json))
.map(k -> EncryptedEventData.isEventDataStringEncrypted(json) ? eventDataEncryptor.decrypt(k, json) : json)
.orElse(json)))
.collect(Collectors.toList());
List<Event> events = eventsWithIds.stream().map(EventWithMetadata::getEvent).collect(Collectors.toList());
Expand Down

0 comments on commit 21b373c

Please sign in to comment.