mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-23 09:22:28 +00:00
use static class member database
This commit is contained in:
parent
13f20b2959
commit
d29cd2da2e
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers
|
||||||
[HttpGet("slots/lolcatftw/{username}")]
|
[HttpGet("slots/lolcatftw/{username}")]
|
||||||
public IActionResult GetLevelQueue(string username)
|
public IActionResult GetLevelQueue(string username)
|
||||||
{
|
{
|
||||||
IEnumerable<QueuedLevel> queuedLevels = new Database().QueuedLevels.Include
|
IEnumerable<QueuedLevel> queuedLevels = this.database.QueuedLevels.Include
|
||||||
(q => q.User)
|
(q => q.User)
|
||||||
.Include(q => q.Slot)
|
.Include(q => q.Slot)
|
||||||
.Include(q => q.Slot.Location)
|
.Include(q => q.Slot.Location)
|
||||||
|
@ -85,7 +85,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers
|
||||||
[HttpGet("favouriteSlots/{username}")]
|
[HttpGet("favouriteSlots/{username}")]
|
||||||
public IActionResult GetFavouriteSlots(string username)
|
public IActionResult GetFavouriteSlots(string username)
|
||||||
{
|
{
|
||||||
IEnumerable<HeartedLevel> heartedLevels = new Database().HeartedLevels.Include
|
IEnumerable<HeartedLevel> heartedLevels = this.database.HeartedLevels.Include
|
||||||
(q => q.User)
|
(q => q.User)
|
||||||
.Include(q => q.Slot)
|
.Include(q => q.Slot)
|
||||||
.Include(q => q.Slot.Location)
|
.Include(q => q.Slot.Location)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue