fix: removed undeclared variable from search index endpoint

This commit is contained in:
Victor Westerlund 2025-03-29 09:33:19 +01:00
parent a6c74f5c4f
commit eb012de338
Signed by: vlw
GPG key ID: D0AD730E1057DFC6

View file

@ -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();
}
}