Browse Source

Send notification about new platform version only to sysadmins

pull/8464/head
ViacheslavKlimov 3 years ago
parent
commit
84e39af7c7
  1. 2
      dao/src/main/java/org/thingsboard/server/dao/notification/DefaultNotificationSettingsService.java
  2. 2
      dao/src/main/java/org/thingsboard/server/dao/notification/DefaultNotifications.java

2
dao/src/main/java/org/thingsboard/server/dao/notification/DefaultNotificationSettingsService.java

@ -98,7 +98,7 @@ public class DefaultNotificationSettingsService implements NotificationSettingsS
defaultNotifications.create(tenantId, DefaultNotifications.apiFeatureDisabledForSysadmin, sysAdmins.getId());
defaultNotifications.create(tenantId, DefaultNotifications.apiFeatureDisabledForTenant, affectedTenantAdmins.getId());
defaultNotifications.create(tenantId, DefaultNotifications.newPlatformVersion, sysAdmins.getId(), tenantAdmins.getId());
defaultNotifications.create(tenantId, DefaultNotifications.newPlatformVersion, sysAdmins.getId());
return;
}

2
dao/src/main/java/org/thingsboard/server/dao/notification/DefaultNotifications.java

@ -143,7 +143,7 @@ public class DefaultNotifications {
.rule(DefaultRule.builder()
.name("New platform version")
.triggerConfig(new NewPlatformVersionNotificationRuleTriggerConfig())
.description("Send notification to system admins and tenant admins when new platform version is available")
.description("Send notification to system admins when new platform version is available")
.build())
.build();

Loading…
Cancel
Save