mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-09-10 03:26:23 +00:00
Apply more suggested formatting changes
This commit is contained in:
parent
9fd5170092
commit
8299677767
1 changed files with 2 additions and 3 deletions
|
@ -34,7 +34,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("user/{username}/playlists")]
|
[HttpGet("user/{username}/playlists")]
|
||||||
public async Task<IActionResult> GetUserPlaylists(string username)
|
public IActionResult GetUserPlaylists(string username)
|
||||||
{
|
{
|
||||||
return this.Ok();
|
return this.Ok();
|
||||||
}
|
}
|
||||||
|
@ -135,9 +135,8 @@ namespace LBPUnion.ProjectLighthouse.Controllers
|
||||||
}
|
}
|
||||||
|
|
||||||
// the way location on a user card works is stupid and will not save with the way below as-is, so we do the following:
|
// the way location on a user card works is stupid and will not save with the way below as-is, so we do the following:
|
||||||
if (locationChanged)
|
if (locationChanged) // only modify the database if we modify here
|
||||||
{
|
{
|
||||||
// only modify the database if we modify here
|
|
||||||
Location l = await this.database.Locations.Where(l => l.Id == user.LocationId)
|
Location l = await this.database.Locations.Where(l => l.Id == user.LocationId)
|
||||||
.FirstOrDefaultAsync(); // find the location in the database again
|
.FirstOrDefaultAsync(); // find the location in the database again
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue