This commit is contained in:
Diego
2025-06-16 18:25:55 +08:00
parent 081e07473d
commit 013ff394be
3 changed files with 4 additions and 4 deletions

View File

@@ -61,7 +61,7 @@ public class HardwareJob : IJob, IHardwareJob
var historyHardwareInfos = MemoryCache.Get<List<HistoryHardwareInfo>>(CacheKey);
if (historyHardwareInfos == null)
{
using var db = _db;
using var db = DbContext.GetDB<HistoryHardwareInfo>(); ;
historyHardwareInfos = await db.Queryable<HistoryHardwareInfo>().Where(a => a.Date > DateTime.Now.AddDays(-3)).ToListAsync().ConfigureAwait(false);
MemoryCache.Set(CacheKey, historyHardwareInfos);

View File

@@ -1,8 +1,8 @@
<Project>
<PropertyGroup>
<PluginVersion>10.8.0</PluginVersion>
<ProPluginVersion>10.8.0</ProPluginVersion>
<PluginVersion>10.8.1</PluginVersion>
<ProPluginVersion>10.8.1</ProPluginVersion>
<AuthenticationVersion>2.8.0</AuthenticationVersion>
<SourceGeneratorVersion>10.8.0</SourceGeneratorVersion>
<NET8Version>8.0.17</NET8Version>

View File

@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>10.8.0</Version>
<Version>10.8.1</Version>
</PropertyGroup>
<ItemGroup>