mirror of
https://codeberg.org/vlw/vlw.se.git
synced 2025-09-13 21:13:40 +02:00
fix: removed undeclared variable from search index endpoint (#36)
Reviewed-on: https://codeberg.org/vlw/vlw.se/pulls/36
This commit is contained in:
parent
fef10a8ea8
commit
62ddd25f38
1 changed files with 1 additions and 7 deletions
|
@ -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();
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue