Commit fa5c051476e36982a8fd1e307555eaf03760e21d
1 parent
8a246cce
Fix demo data loader: set tenantId for termostatAlarms asset
Showing
1 changed file
with
1 additions
and
0 deletions
application/src/main/java/org/thingsboard/server/service/install/DefaultSystemDataLoaderService.java
... | ... | @@ -174,6 +174,7 @@ public class DefaultSystemDataLoaderService implements SystemDataLoaderService { |
174 | 174 | "Raspberry Pi GPIO control sample application"); |
175 | 175 | |
176 | 176 | Asset thermostatAlarms = new Asset(); |
177 | + thermostatAlarms.setTenantId(demoTenant.getId()); | |
177 | 178 | thermostatAlarms.setName("Thermostat Alarms"); |
178 | 179 | thermostatAlarms.setType("AlarmPropagationAsset"); |
179 | 180 | thermostatAlarms = assetService.saveAsset(thermostatAlarms); | ... | ... |