fix: Fix website log cleanup selection state (#11549)

This commit is contained in:
CityFun
2026-01-04 10:27:40 +00:00
committed by GitHub
parent c8673b60bb
commit b2777055bc
+5 -6
View File
@@ -690,12 +690,11 @@ func loadWebsiteLogTree(fileOp fileUtils.FileOp) []dto.CleanTree {
for _, website := range websites {
size3, _ := fileOp.GetDirSize(path.Join(GetSiteDir(website.Alias), "log"))
res = append(res, dto.CleanTree{
ID: uuid.NewString(),
Label: website.PrimaryDomain,
Size: uint64(size3),
IsCheck: size3 > 5*1024,
Type: "website_log",
Name: website.Alias,
ID: uuid.NewString(),
Label: website.PrimaryDomain,
Size: uint64(size3),
Type: "website_log",
Name: website.Alias,
})
}
return res