fix 心跳间隔控制
This commit is contained in:
@@ -24,7 +24,7 @@ public class HeartbeatJob
|
||||
_dbContext.Client.QueryFilter.ClearAndBackup<ITenantId>();
|
||||
try
|
||||
{
|
||||
var devices = await _dbContext.Queryable<DeviceEntity>().Where(x => x.Enable).ToListAsync();
|
||||
var devices = await _dbContext.Queryable<DeviceEntity>().Where(x => x.Enable).Where(x => x.HeartbeatInterval > 0).ToListAsync();
|
||||
foreach (var device in devices)
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user