Skip to content

Commit

Permalink
🔨 APP #270 melhorando mensagem de retorno delete
Browse files Browse the repository at this point in the history
  • Loading branch information
bjverde committed Sep 27, 2022
1 parent 5916aa5 commit e567a12
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ public static function delete(Request $request, Response $response, array $args)
$id = $args['id'];
$controller = new \Acesso_perfil;
$msg = $controller->delete($id);

if($msg==true){
$msg = \Message::GENERIC_DELETE;
$msg = $msg.' id='.$id;
}
$response = TGenericAPI::getBodyJson($msg,$response);
return $response;
}
Expand Down

0 comments on commit e567a12

Please sign in to comment.