Fix SUser exception on slot not found

This commit is contained in:
jvyden 2021-10-29 15:10:34 -04:00
commit 84653c9293
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

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