Update ChatHub.cs

if (Appsettings.app(new string[] { "Middleware", "SignalRSendLog", "Enabled" }).ObjToBool())
This commit is contained in:
何拾玖 2022-04-15 11:46:52 +08:00 committed by GitHub
parent 895b788660
commit d9aa83e462
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@ namespace Blog.Core.Hubs
public async Task GetLatestCount(string random)
{
//2、服务端主动向客户端发送数据名字千万不能错
if (!Appsettings.app(new string[] { "Middleware", "SignalRSendLog", "Enabled" }).ObjToBool())
if (Appsettings.app(new string[] { "Middleware", "SignalRSendLog", "Enabled" }).ObjToBool())
{
await Clients.All.ReceiveUpdate(LogLock.GetLogData());
}