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
This commit is contained in:
Bobby 2022-10-08 18:18:12 +07:00
parent 126671eb77
commit 9d464c6894
No known key found for this signature in database
GPG Key ID: 941839794CBF5A09

View File

@ -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)