Fix updateDashboardCustomers method - allow empty body
This commit is contained in:
		
							parent
							
								
									bea4d7b86e
								
							
						
					
					
						commit
						674512ddcc
					
				@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user