mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 16:06:21 +00:00
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:
parent
126671eb77
commit
9d464c6894
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user