File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
publish-service/src/main/java/com/ericsson/eiffel/remrem/publish/controller Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 9
9
<version >2.0.15</version >
10
10
</parent >
11
11
<properties >
12
- <eiffel-remrem-publish .version>2.1.7 </eiffel-remrem-publish .version>
12
+ <eiffel-remrem-publish .version>2.1.8 </eiffel-remrem-publish .version>
13
13
<eiffel-remrem-semantics .version>2.4.1</eiffel-remrem-semantics .version>
14
14
</properties >
15
15
<artifactId >eiffel-remrem-publish</artifactId >
Original file line number Diff line number Diff line change @@ -179,9 +179,9 @@ private HttpStatus getHttpStatus(SendResult result) {
179
179
if (events .size () == 1 ) {
180
180
return HttpStatus .valueOf (events .get (0 ).getStatusCode ());
181
181
}
182
- else {
183
- return HttpStatus . MULTI_STATUS ;
184
- }
182
+ boolean allSuccessFull = events . stream (). allMatch ( event -> event . getStatusCode () == HttpStatus . OK . value ());
183
+
184
+ return allSuccessFull ? HttpStatus . OK : HttpStatus . MULTI_STATUS ;
185
185
}
186
186
187
187
/**
You can’t perform that action at this time.
0 commit comments