Skip to content

Commit

Permalink
只处理未删除配置
Browse files Browse the repository at this point in the history
  • Loading branch information
harris2012 authored Sep 7, 2024
1 parent e27b2dc commit a87177d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AgileConfig.Server.Service/AppService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public async Task<bool> DeleteAsync(App app)
using var configPublishedRepository = _configPublishedRepositoryAccessor(env);

//怕有的同学误删app导致要恢复,所以保留配置项吧。
var configs = await configRepository.QueryAsync(x => x.AppId == app.Id);
var configs = await configRepository.QueryAsync(x => x.AppId == app.Id && x.Status == ConfigStatus.Enabled);
var waitDeleteConfigs = new List<Config>();
foreach (var item in configs)
{
Expand Down

0 comments on commit a87177d

Please sign in to comment.