target fix
This commit is contained in:
@@ -1203,11 +1203,10 @@ public class MarketingStrategyV3Service {
|
||||
}
|
||||
|
||||
Optional<MarketingStrategy.PostCalendarItem> fbPostOpt = strategy.getPostCalendar().stream()
|
||||
.filter(item -> "facebook".equalsIgnoreCase(item.getPlatform()))
|
||||
.findFirst();
|
||||
|
||||
if (fbPostOpt.isEmpty()) {
|
||||
throw new IllegalStateException("No Facebook posts found in the strategy calendar");
|
||||
throw new IllegalStateException("No posts found in the strategy calendar");
|
||||
}
|
||||
|
||||
MarketingStrategy.PostCalendarItem fbPost = fbPostOpt.get();
|
||||
|
||||
Reference in New Issue
Block a user