Commit 674512ddccf1e9abab7a549d4f3bd110b9a8ab00

Authored by Igor Kulikov
1 parent bea4d7b8

Fix updateDashboardCustomers method - allow empty body

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