fixd issue where the ihostedservice registration was too wide resulting in an error Cannot instantiate implementation type 'Microsoft.Extensions.Hosting.BackgroundService' for service type 'Microsoft.Extensions.Hosting.IHostedService'
This commit is contained in:
@ -42,7 +42,7 @@ namespace Oqtane.Controllers
|
||||
[HttpGet("{id}")]
|
||||
public Page Get(int id, string userid)
|
||||
{
|
||||
if (userid == "")
|
||||
if (string.IsNullOrEmpty(userid))
|
||||
{
|
||||
return Pages.GetPage(id);
|
||||
}
|
||||
|
Reference in New Issue
Block a user