Fixed correct class for widget type details

This commit is contained in:
Volodymyr Babak 2021-04-09 20:19:21 +03:00
parent c5f5acdba1
commit 4e5c726ea1

View File

@ -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);
}