FIX: Find Pago

This commit is contained in:
Juan Pablo Vial
2024-02-07 18:35:28 -03:00
parent ad3285efd9
commit d8b8787be9
2 changed files with 3 additions and 2 deletions

View File

@ -142,7 +142,7 @@ class Search
}
protected function findPago(string $query): array
{
if ($query != 0) {
if ((int) $query === 0) {
return [];
}
$methods = [
@ -156,6 +156,7 @@ class Search
$pagos = [];
try {
$pagos = $this->pagoRepository->fetchByValue((int) $valor);
error_log(var_export($pagos,true).PHP_EOL,3,'/logs/debug');
} catch (EmptyResult) {}
$results = [];
foreach ($methods as $method) {