fixed empty advertising
This commit is contained in:
@@ -39,7 +39,8 @@ public class AdvertisingController {
|
||||
log.info("getNextAdvertising");
|
||||
Optional<SelectedAdvertisingDto> selected = advertisingSelectionService.selectAdvertising(authentication, sessionId, request);
|
||||
if (selected.isEmpty()) {
|
||||
log.warn("failed get advertising");
|
||||
// Нормальная ситуация (нет активных реклам / кулдаун / кап) — не ошибка
|
||||
log.debug("No advertising to show, returning 204");
|
||||
return ResponseEntity.noContent().build();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user