Skip to content

Commit e30c2d4

Browse files
committed
wip
1 parent fb8a997 commit e30c2d4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/core/core-content/src/main/java/com/enonic/xp/core/impl/content/PublishContentCommand.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,12 @@ private void doPush( final ContentIds ids )
101101
{
102102
contentValidityResult.getNotValidContentIds()
103103
.stream()
104-
.forEach( c -> PublishContentResult.Result.failure( c, PublishContentResult.Reason.INVALID ) );
104+
.map( c -> PublishContentResult.Result.failure( c, PublishContentResult.Reason.INVALID ) )
105+
.forEach( resultBuilder::add );
105106
contentValidityResult.getNotReadyContentIds()
106107
.stream()
107-
.forEach( c -> PublishContentResult.Result.failure( c, PublishContentResult.Reason.NOT_READY ) );
108+
.map( c -> PublishContentResult.Result.failure( c, PublishContentResult.Reason.NOT_READY ) )
109+
.forEach( resultBuilder::add );
108110
return;
109111
}
110112

0 commit comments

Comments
 (0)