Commit 2657d1af44dde2b70c13daf8f8e1e6d4aa199c3d

Authored by lsyer
2 parents eccd9d2a 674512dd
... ... @@ -212,7 +212,7 @@ public class DashboardController extends BaseController {
212 212 @RequestMapping(value = "/dashboard/{dashboardId}/customers", method = RequestMethod.POST)
213 213 @ResponseBody
214 214 public Dashboard updateDashboardCustomers(@PathVariable(DASHBOARD_ID) String strDashboardId,
215   - @RequestBody String[] strCustomerIds) throws ThingsboardException {
  215 + @RequestBody(required = false) String[] strCustomerIds) throws ThingsboardException {
216 216 checkParameter(DASHBOARD_ID, strDashboardId);
217 217 try {
218 218 DashboardId dashboardId = new DashboardId(toUUID(strDashboardId));
... ...
... ... @@ -349,7 +349,8 @@ export enum MessageType {
349 349 ENTITY_UNASSIGNED = 'ENTITY_UNASSIGNED',
350 350 ATTRIBUTES_UPDATED = 'ATTRIBUTES_UPDATED',
351 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 356 export const messageTypeNames = new Map<MessageType, string>(
... ... @@ -369,7 +370,8 @@ export const messageTypeNames = new Map<MessageType, string>(
369 370 [MessageType.ENTITY_UNASSIGNED, 'Entity Unassigned'],
370 371 [MessageType.ATTRIBUTES_UPDATED, 'Attributes Updated'],
371 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
... ...