From be0b5d131c59a6e346993c5e058cae34a990fa63 Mon Sep 17 00:00:00 2001 From: doktordirk Date: Mon, 25 Jan 2016 14:38:48 +0100 Subject: [PATCH] fix(repository): retrieved single entitiy marked clean --- src/repository.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repository.js b/src/repository.js index ac443787..72d3f7fc 100644 --- a/src/repository.js +++ b/src/repository.js @@ -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());