Finish Hotfix-1
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -547,7 +547,14 @@ public class NotificationService {
|
||||
throw new Exception("Username nullo in sendNotificationToUserDevices.");
|
||||
}
|
||||
|
||||
for (WtbUserDeviceToken device : deviceTokenService.getUserDevices(messageDTO.getUserName(), messageDTO.getAppName())) {
|
||||
List<WtbUserDeviceToken> userDevices = deviceTokenService.getUserDevices(messageDTO.getUserName(), messageDTO.getAppName());
|
||||
|
||||
if (userDevices == null || userDevices.isEmpty()) {
|
||||
logger.warn("Nessun dispositivo trovato per l'utente: {}", messageDTO.getUserName());
|
||||
return;
|
||||
}
|
||||
|
||||
for (WtbUserDeviceToken device : userDevices) {
|
||||
try {
|
||||
Message message = messageDTO.toBuilder()
|
||||
.setToken(device.getDeviceToken())
|
||||
|
||||
@@ -1361,7 +1361,7 @@ public class ActivityService {
|
||||
boolean sendNotification = UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(conn, sql);
|
||||
|
||||
if (sendNotification) {
|
||||
String username = null;
|
||||
String username;
|
||||
|
||||
sql = Query.format(
|
||||
"SELECT cod_jflav_tec\n" +
|
||||
|
||||
Reference in New Issue
Block a user