Skip to content

Commit

Permalink
prepare new version
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Aug 3, 2019
1 parent a580c99 commit 6e6352e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/definitions/collection.js
Expand Up @@ -403,6 +403,7 @@ _.extend(Collection.prototype, {
var localFoundVms = [];
if (this.isReplaying) {
localFoundVms = _.reduce(this.replayingVms, function (result, vm) {
// if (sift(query, [vm.toJSON()]).length > 0) { // We just read, so this is ok and faster!
if (sift(query, [vm.attributes]).length > 0) {
var newLen = result.push(vm);
localFoundVmsDict[vm.id] = newLen - 1;
Expand Down
3 changes: 3 additions & 0 deletions releasenotes.md
@@ -1,3 +1,6 @@
## [v1.16.56](https://github.com/adrai/node-cqrs-eventdenormalizer/compare/v1.16.55...v1.16.56)
- refactoring of findViewModel - only one loop [#85](https://github.com/adrai/node-cqrs-eventdenormalizer/pull/85) thanks to [Robin Fehr](https://github.com/robinfehr)

## [v1.16.55](https://github.com/adrai/node-cqrs-eventdenormalizer/compare/v1.16.54...v1.16.55)
- fix edge case during replay whe using query

Expand Down

0 comments on commit 6e6352e

Please sign in to comment.