Fixed warning for await missing in Channel get controller

This commit is contained in:
hak8or 2018-02-20 01:19:46 -05:00
parent e11ddfa72c
commit 7714a35d3e
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ namespace YTManager.Controllers {
// GET api/Channels/5
[HttpGet("{YTchannelID}")]
public async Task<IActionResult> Get([FromQuery] string YTchannelID) {
var channel = db.Channels.SingleOrDefaultAsync(c => c.YoutubeID == YTchannelID);
var channel = await db.Channels.SingleOrDefaultAsync(c => c.YoutubeID == YTchannelID);
if (channel == null)
return NotFound();
else