Browse Source

Fixed correct class for widget type details

pull/3811/head
Volodymyr Babak 5 years ago
parent
commit
4e5c726ea1
  1. 6
      application/src/main/java/org/thingsboard/server/controller/WidgetTypeController.java

6
application/src/main/java/org/thingsboard/server/controller/WidgetTypeController.java

@ -73,12 +73,12 @@ public class WidgetTypeController extends BaseController {
}
checkEntity(widgetTypeDetails.getId(), widgetTypeDetails, Resource.WIDGET_TYPE);
WidgetType savedWidgetType = widgetTypeService.saveWidgetType(widgetTypeDetails);
WidgetTypeDetails savedWidgetTypeDetails = widgetTypeService.saveWidgetType(widgetTypeDetails);
sendEntityNotificationMsg(getTenantId(), savedWidgetType.getId(),
sendEntityNotificationMsg(getTenantId(), savedWidgetTypeDetails.getId(),
widgetTypeDetails.getId() == null ? EdgeEventActionType.ADDED : EdgeEventActionType.UPDATED);
return checkNotNull(widgetTypeDetails);
return checkNotNull(savedWidgetTypeDetails);
} catch (Exception e) {
throw handleException(e);
}

Loading…
Cancel
Save