Agregar datos propietario

This commit is contained in:
Juan Pablo Vial
2025-05-15 15:23:34 -04:00
parent e33edc4d7b
commit 03317b3aa5
10 changed files with 441 additions and 132 deletions

View File

@ -10,6 +10,8 @@ use Incoviba\Common\Implement\Exception\EmptyRedis;
use Incoviba\Common\Implement\Exception\EmptyResult;
use Incoviba\Controller\withRedis;
use Incoviba\Exception\ServiceAction\Read;
use Incoviba\Exception\ServiceAction\Create;
use Incoviba\Exception\ServiceAction\Update;
use Incoviba\Model;
use Incoviba\Repository;
use Incoviba\Service;
@ -334,7 +336,7 @@ class Ventas extends Controller
$propietario = $propietarioService->edit($propietario, $data);
}
$output['edited'] = true;
} catch (EmptyResult) {}
} catch (EmptyResult|Read|Create|Update) {}
return $this->withJson($response, $output);
}