瀏覽代碼

修复警告问题

zhontai 2 年之前
父節點
當前提交
55adab6258

+ 3 - 2
src/platform/ZhonTai.Admin/Repositories/CustomGenerateData.cs

@@ -26,7 +26,7 @@ namespace ZhonTai.Admin.Repositories;
 
 public class CustomGenerateData : GenerateData, IGenerateData
 {
-    public virtual async Task GenerateDataAsync(IFreeSql db, AppConfig appConfig)
+    public virtual Task GenerateDataAsync(IFreeSql db, AppConfig appConfig)
     {
         #region 读取数据
 
@@ -320,7 +320,8 @@ public class CustomGenerateData : GenerateData, IGenerateData
         SaveDataToJsonFile<RolePermissionEntity>(rolePermissions);
         SaveDataToJsonFile<TenantEntity>(tenants);
         SaveDataToJsonFile<TenantPermissionEntity>(tenantPermissions, propsContractResolver: new PropsContractResolver());
-
         #endregion
+
+        return Task.CompletedTask;
     }
 }

+ 0 - 1
src/platform/ZhonTai.Admin/ZhonTai.Admin.csproj

@@ -25,7 +25,6 @@
 		<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="7.0.0" />
 		<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="7.0.3" />
 		<PackageReference Include="MiniProfiler.AspNetCore.Mvc" Version="4.2.22" />
-		<PackageReference Include="MiniProfiler.AspNetCore.Mvc" Version="4.2.22" />
 		<PackageReference Include="NLog" Version="5.1.1" />
 		<PackageReference Include="NLog.Web.AspNetCore" Version="5.2.1" />
 		<PackageReference Include="OnceMi.AspNetCore.OSS" Version="1.1.9" />