mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-18 17:21:33 +00:00
fix: album download throws set headers errors
This commit is contained in:
parent
3ff139319f
commit
2addbb7b65
@ -469,6 +469,7 @@ self.generateZip = async (req, res, next) => {
|
||||
const filePath = path.join(paths.zips, `${identifier}.zip`)
|
||||
await paths.access(filePath)
|
||||
await res.download(filePath, `${album.name}.zip`)
|
||||
return
|
||||
} catch (error) {
|
||||
// Re-throw non-ENOENT error
|
||||
if (error.code !== 'ENOENT') throw error
|
||||
|
Loading…
Reference in New Issue
Block a user