Commit 2657d1af44dde2b70c13daf8f8e1e6d4aa199c3d
Merge branch 'master' of https://github.com/thingsboard/thingsboard
Showing
2 changed files
with
5 additions
and
3 deletions
@@ -212,7 +212,7 @@ public class DashboardController extends BaseController { | @@ -212,7 +212,7 @@ public class DashboardController extends BaseController { | ||
212 | @RequestMapping(value = "/dashboard/{dashboardId}/customers", method = RequestMethod.POST) | 212 | @RequestMapping(value = "/dashboard/{dashboardId}/customers", method = RequestMethod.POST) |
213 | @ResponseBody | 213 | @ResponseBody |
214 | public Dashboard updateDashboardCustomers(@PathVariable(DASHBOARD_ID) String strDashboardId, | 214 | public Dashboard updateDashboardCustomers(@PathVariable(DASHBOARD_ID) String strDashboardId, |
215 | - @RequestBody String[] strCustomerIds) throws ThingsboardException { | 215 | + @RequestBody(required = false) String[] strCustomerIds) throws ThingsboardException { |
216 | checkParameter(DASHBOARD_ID, strDashboardId); | 216 | checkParameter(DASHBOARD_ID, strDashboardId); |
217 | try { | 217 | try { |
218 | DashboardId dashboardId = new DashboardId(toUUID(strDashboardId)); | 218 | DashboardId dashboardId = new DashboardId(toUUID(strDashboardId)); |
@@ -349,7 +349,8 @@ export enum MessageType { | @@ -349,7 +349,8 @@ export enum MessageType { | ||
349 | ENTITY_UNASSIGNED = 'ENTITY_UNASSIGNED', | 349 | ENTITY_UNASSIGNED = 'ENTITY_UNASSIGNED', |
350 | ATTRIBUTES_UPDATED = 'ATTRIBUTES_UPDATED', | 350 | ATTRIBUTES_UPDATED = 'ATTRIBUTES_UPDATED', |
351 | ATTRIBUTES_DELETED = 'ATTRIBUTES_DELETED', | 351 | ATTRIBUTES_DELETED = 'ATTRIBUTES_DELETED', |
352 | - TIMESERIES_UPDATED = 'TIMESERIES_UPDATED' | 352 | + TIMESERIES_UPDATED = 'TIMESERIES_UPDATED', |
353 | + TIMESERIES_DELETED = 'TIMESERIES_DELETED' | ||
353 | } | 354 | } |
354 | 355 | ||
355 | export const messageTypeNames = new Map<MessageType, string>( | 356 | export const messageTypeNames = new Map<MessageType, string>( |
@@ -369,7 +370,8 @@ export const messageTypeNames = new Map<MessageType, string>( | @@ -369,7 +370,8 @@ export const messageTypeNames = new Map<MessageType, string>( | ||
369 | [MessageType.ENTITY_UNASSIGNED, 'Entity Unassigned'], | 370 | [MessageType.ENTITY_UNASSIGNED, 'Entity Unassigned'], |
370 | [MessageType.ATTRIBUTES_UPDATED, 'Attributes Updated'], | 371 | [MessageType.ATTRIBUTES_UPDATED, 'Attributes Updated'], |
371 | [MessageType.ATTRIBUTES_DELETED, 'Attributes Deleted'], | 372 | [MessageType.ATTRIBUTES_DELETED, 'Attributes Deleted'], |
372 | - [MessageType.TIMESERIES_UPDATED, 'Timeseries Updated'] | 373 | + [MessageType.TIMESERIES_UPDATED, 'Timeseries Updated'], |
374 | + [MessageType.TIMESERIES_DELETED, 'Timeseries Deleted'] | ||
373 | ] | 375 | ] |
374 | ); | 376 | ); |
375 | 377 |