target fix

This commit is contained in:
arys
2026-04-05 20:04:14 +05:00
parent 6acf8b1eed
commit 194f8ebccd
@@ -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();