Skip to content

Commit

Permalink
Fix for issue #754
Browse files Browse the repository at this point in the history
During encryption boolean values set to false have
been replaced by nils - that caused the value set to nil in decrypted
domain event.
  • Loading branch information
mpraglowski committed Aug 19, 2020
1 parent d5c6913 commit 04f33ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def encrypt_attribute(data, attribute, meta)
case meta
when Leaf
value = data.fetch(attribute)
return unless value
return if value.nil?

encryption_key = key_repository.key_of(meta.fetch(:identifier))
encryption_key.encrypt(serializer.dump(value), meta.fetch(:iv))
Expand Down

0 comments on commit 04f33ea

Please sign in to comment.