Fixed warning for await missing in Channel get controller
This commit is contained in:
parent
e11ddfa72c
commit
7714a35d3e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user