Skip to content

Commit 8baf9c6

Browse files
Benedikt Rötschaxe312ger
authored andcommitted
feat(isUpdated): now returns boolean false instead of undefined
This is actually a bugfix but marked as feature to avoid issues with semantic-release Fixes #129
1 parent 2519675 commit 8baf9c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/instance-actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export function createUpdatedChecker () {
8686
return function () {
8787
// The act of publishing an entity increases its version by 1, so any entry which has
8888
// 2 versions higher or more than the publishedVersion has unpublished changes.
89-
return this.sys.publishedVersion && this.sys.version > this.sys.publishedVersion + 1
89+
return !!(this.sys.publishedVersion && this.sys.version > this.sys.publishedVersion + 1)
9090
}
9191
}
9292

0 commit comments

Comments
 (0)