mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-18 17:21:33 +00:00
fix: await album zip jetpack.rename()
This commit is contained in:
parent
afd81c965d
commit
d5b1ad69d9
@ -439,7 +439,7 @@ self.edit = async (req, res) => {
|
||||
// Rename album ZIP if it exists
|
||||
const zipFullPath = path.join(paths.zips, `${album.identifier}.zip`)
|
||||
if (await jetpack.existsAsync(zipFullPath) === 'file') {
|
||||
await jetpack.rename(zipFullPath, `${update.identifier}.zip`)
|
||||
await jetpack.renameAsync(zipFullPath, `${update.identifier}.zip`)
|
||||
}
|
||||
|
||||
return res.json({
|
||||
|
Loading…
Reference in New Issue
Block a user