From 9d464c68948f9fa46f14fe54685e533ee0e8ceee Mon Sep 17 00:00:00 2001 From: Bobby Date: Sat, 8 Oct 2022 18:18:12 +0700 Subject: [PATCH] fix: useless logic for context, we prefer to list files in zips dir, because admins may choose to manually delete their ZIPs anytime, and lolisafe will not be aware of it the download API will automatically re-generate them if required, so admins manually deleting ZIPs is okay --- controllers/utils/StatsManager.js | 1 - 1 file changed, 1 deletion(-) diff --git a/controllers/utils/StatsManager.js b/controllers/utils/StatsManager.js index 9c5f512..acf7154 100644 --- a/controllers/utils/StatsManager.js +++ b/controllers/utils/StatsManager.js @@ -278,7 +278,6 @@ self.getAlbumsStats = async db => { activeAlbums.push(album.id) if (album.download) stats.Downloadable++ if (album.public) stats.Public++ - if (album.zipGeneratedAt) stats['ZIP Generated']++ } const files = await jetpack.listAsync(paths.zips)