mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 08:28:39 +00:00
Fix SUser exception on slot not found
This commit is contained in:
parent
0a43cdbbe1
commit
84653c9293
1 changed files with 2 additions and 0 deletions
|
@ -34,6 +34,8 @@ namespace LBPUnion.ProjectLighthouse.Controllers {
|
|||
.Include(s => s.Location)
|
||||
.FirstOrDefaultAsync(s => s.SlotId == id);
|
||||
|
||||
if(slot == null) return this.NotFound();
|
||||
|
||||
return this.Ok(slot.Serialize());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue