Browse Source

Fix updateDashboardCustomers method - allow empty body

pull/3921/head
Igor Kulikov 6 years ago
parent
commit
674512ddcc
  1. 2
      application/src/main/java/org/thingsboard/server/controller/DashboardController.java

2
application/src/main/java/org/thingsboard/server/controller/DashboardController.java

@ -212,7 +212,7 @@ public class DashboardController extends BaseController {
@RequestMapping(value = "/dashboard/{dashboardId}/customers", method = RequestMethod.POST)
@ResponseBody
public Dashboard updateDashboardCustomers(@PathVariable(DASHBOARD_ID) String strDashboardId,
@RequestBody String[] strCustomerIds) throws ThingsboardException {
@RequestBody(required = false) String[] strCustomerIds) throws ThingsboardException {
checkParameter(DASHBOARD_ID, strDashboardId);
try {
DashboardId dashboardId = new DashboardId(toUUID(strDashboardId));

Loading…
Cancel
Save