fix notification

This commit is contained in:
Efstratios Giannopoulos 2024-05-13 14:20:00 +03:00
parent b6d6385dc0
commit 5f9732844d
1 changed files with 0 additions and 3 deletions

View File

@ -79,9 +79,6 @@ public class NotifyIntegrationEventHandlerImpl implements NotifyIntegrationEvent
NotifyIntegrationEvent event = this.jsonHandlingService.fromJsonSafe(NotifyIntegrationEvent.class, message); NotifyIntegrationEvent event = this.jsonHandlingService.fromJsonSafe(NotifyIntegrationEvent.class, message);
if (event == null) if (event == null)
return EventProcessingStatus.Error; return EventProcessingStatus.Error;
if (event.getUserId() == null) {
throw new MyValidationException(this.errors.getModelValidation().getCode(), "userId", messageSource.getMessage("Validation_Required", new Object[]{"userId"}, LocaleContextHolder.getLocale()));
}
logger.debug("Handling {}", NotifyIntegrationEvent.class.getSimpleName()); logger.debug("Handling {}", NotifyIntegrationEvent.class.getSimpleName());
NotificationPersist model = new NotificationPersist(); NotificationPersist model = new NotificationPersist();