Skip to content

Commit 3d0d74c

Browse files
authored
Merge pull request #148 from bikerp/fix-readme
2 parents 839582f + 0fe4994 commit 3d0d74c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Introduction
32

43
[![travis](https://img.shields.io/travis/adrai/node-cqrs-domain.svg)](https://travis-ci.org/adrai/node-cqrs-domain) [![npm](https://img.shields.io/npm/v/cqrs-domain.svg)](https://npmjs.org/package/cqrs-domain)
@@ -767,15 +766,15 @@ After the initialization you can request the domain information:
767766
aggregate.set('firstname', names[0]);
768767
aggregate.set('lastname', names[1]);
769768
})
770-
// optionally, define committingSnapshotTransformer (i.e. for GDPR: to encrypt data in storage)
771-
.defineCommittingSnapshotTransformer({
769+
// optionally, define committingSnapshotTransformer (i.e. for GDPR: to encrypt data in storage)
770+
.defineCommittingSnapshotTransformer({
772771
version: 1
773772
}, function (data) {
774773
// data is the snapshot data
775774
data.firstname = encrypt(data.firstname);
776775
return data;
777776
})
778-
// or async
777+
// or async
779778
.defineCommittingSnapshotTransformer({
780779
version: 1
781780
}, function (data, callback) {
@@ -785,15 +784,15 @@ After the initialization you can request the domain information:
785784
callback(err, data);
786785
});
787786
})
788-
// optionally, define loadingSnapshotTransformer (i.e. for GDPR: to decrypt stored data)
787+
// optionally, define loadingSnapshotTransformer (i.e. for GDPR: to decrypt stored data)
789788
.defineLoadingSnapshotTransformer({
790789
version: 1
791790
}, function (data) {
792791
// data is the snapshot data
793792
data.firstname = decrypt(data.firstname);
794793
return data;
795794
})
796-
// or async
795+
// or async
797796
.defineLoadingSnapshotTransformer({
798797
version: 1
799798
}, function (data, callback) {

0 commit comments

Comments
 (0)