mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-24 14:11:29 +00:00
Fix exception on searching slots without a query
This commit is contained in:
parent
93a452814c
commit
14730f754b
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers {
|
|||
|
||||
[HttpGet("slots/search")]
|
||||
public async Task<IActionResult> SearchSlots([FromQuery] string query) {
|
||||
if(query == null) return this.BadRequest();
|
||||
query = query.ToLower();
|
||||
|
||||
string[] keywords = query.Split(" ");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue