Skip to content

Commit

Permalink
fix: occurrence checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusantguerrero committed Nov 11, 2024
1 parent 2c18c17 commit 092162c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions app/Domains/Transaction/Actions/SearchTransactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,16 @@ public function hasValidConditions($conditions) {
if (!$condition) {
continue;
}
try {
foreach ($condition as $param) {
try {
if ($param && $param['operator'] && $param['value']) {
return true;
}

} catch (Exception $e) {
print_r($param);
Log::error($e);
continue;
}
} catch (Exception $e) {
print_r($param);
Log::error($e);
continue;
}
}
}
Expand Down

0 comments on commit 092162c

Please sign in to comment.