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
|
// GET api/Channels/5
|
||||||
[HttpGet("{YTchannelID}")]
|
[HttpGet("{YTchannelID}")]
|
||||||
public async Task<IActionResult> Get([FromQuery] string 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)
|
if (channel == null)
|
||||||
return NotFound();
|
return NotFound();
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user