Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: stanley
Browse files Browse the repository at this point in the history
alexbarnsley committed Jan 27, 2025
1 parent 29a95c6 commit 055db85
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Services/Search/BlockSearch.php
Original file line number Diff line number Diff line change
@@ -40,6 +40,10 @@ public static function buildSearchQueryForIndex(string $query, int $limit): ?Sea
return null;
}

if ($limit < 0) {
$limit = null;
}

return (new SearchQuery())
->setFilter(['id = '.sprintf('"%s"', addslashes($query))])
->setIndexUid('blocks')
4 changes: 4 additions & 0 deletions app/Services/Search/TransactionSearch.php
Original file line number Diff line number Diff line change
@@ -40,6 +40,10 @@ public static function buildSearchQueryForIndex(string $query, int $limit): ?Sea
return null;
}

if ($limit < 0) {
$limit = null;
}

return (new SearchQuery())
->setFilter(['id = '.sprintf('"%s"', addslashes($query))])
->setIndexUid('transactions')
4 changes: 4 additions & 0 deletions app/Services/Search/WalletSearch.php
Original file line number Diff line number Diff line change
@@ -59,6 +59,10 @@ public static function buildSearchQueryForIndex(string $query, int $limit): ?Sea
$query = sprintf('"%s"', $query);
}

if ($limit < 0) {
$limit = null;
}

return (new SearchQuery())
->setQuery($query)
->setIndexUid('wallets')

0 comments on commit 055db85

Please sign in to comment.