From eb012de33848abf548d7d140e31b502254e6aa28 Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Sat, 29 Mar 2025 09:33:19 +0100 Subject: [PATCH] fix: removed undeclared variable from search index endpoint --- endpoints/search/POST.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/endpoints/search/POST.php b/endpoints/search/POST.php index 107d627..a934b04 100644 --- a/endpoints/search/POST.php +++ b/endpoints/search/POST.php @@ -61,13 +61,7 @@ } public function main(): Response { - // Truncate existing cache - (new Call(Endpoints::SEARCH->value))->delete(); - $this->index_work(); - - return $result->num_rows > 0 - ? new Response($result->fetch_all(MYSQLI_ASSOC)) - : new Response([], 404); + return new Response(); } } \ No newline at end of file