Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
fix(repository): retrieved single entitiy marked clean
Browse files Browse the repository at this point in the history
  • Loading branch information
doktordirk committed Jan 25, 2016
1 parent 9566919 commit be0b5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repository.js
Expand Up @@ -100,7 +100,7 @@ export class Repository {
.then(x => this.populateEntities(x))
.then(populated => {
if (!Array.isArray(populated)) {
return populated;
return populated.markClean();
}

populated.forEach(entity => entity.markClean());
Expand Down

0 comments on commit be0b5d1

Please sign in to comment.