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