Fixed correct class for widget type details
This commit is contained in:
parent
c5f5acdba1
commit
4e5c726ea1
@ -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…
x
Reference in New Issue
Block a user