Browse Source

widget test service improvements

pull/9286/head
YevhenBondarenko 3 years ago
parent
commit
069efc06c3
  1. 3
      dao/src/main/java/org/thingsboard/server/dao/widget/WidgetTypeServiceImpl.java

3
dao/src/main/java/org/thingsboard/server/dao/widget/WidgetTypeServiceImpl.java

@ -179,6 +179,9 @@ public class WidgetTypeServiceImpl implements WidgetTypeService {
Validator.validateId(tenantId, INCORRECT_TENANT_ID + tenantId);
Validator.validateId(widgetsBundleId, INCORRECT_WIDGETS_BUNDLE_ID + widgetsBundleId);
Validator.checkNotNull(widgetTypeIds, "Incorrect widgetTypeIds " + widgetTypeIds);
if (!widgetTypeIds.isEmpty()) {
validateIds(widgetTypeIds, "Incorrect widgetTypeIds " + widgetTypeIds);
}
List<WidgetsBundleWidget> bundleWidgets = new ArrayList<>();
for (int index = 0; index < widgetTypeIds.size(); index++) {
bundleWidgets.add(new WidgetsBundleWidget(widgetsBundleId, widgetTypeIds.get(index), index));

Loading…
Cancel
Save