Cleanup
This commit is contained in:
@ -99,13 +99,13 @@ class Subscription extends AbstractEndPoint
|
|||||||
public function queue(int $venta_id): bool
|
public function queue(int $venta_id): bool
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$venta = $this->ventaService->getById($venta_id);
|
$this->ventaService->getById($venta_id);
|
||||||
} catch (Read $exception) {
|
} catch (Read $exception) {
|
||||||
$this->logger->warning($exception);
|
$this->logger->warning($exception);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
$subscription = $this->subscriptionRepsitory->fetchByVenta($venta_id);
|
$this->subscriptionRepsitory->fetchByVenta($venta_id);
|
||||||
return false;
|
return false;
|
||||||
} catch (EmptyResult) {
|
} catch (EmptyResult) {
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user