mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-19 01:31:34 +00:00
Added a little bit of logging
This commit is contained in:
parent
149742ab61
commit
09a5c6bf1e
@ -165,6 +165,7 @@ albumsController.generateZip = async (req, res, next) => {
|
|||||||
.generateNodeStream({ type: 'nodebuffer', streamFiles: true })
|
.generateNodeStream({ type: 'nodebuffer', streamFiles: true })
|
||||||
.pipe(fs.createWriteStream(zipPath))
|
.pipe(fs.createWriteStream(zipPath))
|
||||||
.on('finish', async () => {
|
.on('finish', async () => {
|
||||||
|
console.log(`Generated zip for album identifier: ${identifier}`);
|
||||||
await db.table('albums')
|
await db.table('albums')
|
||||||
.where('id', album.id)
|
.where('id', album.id)
|
||||||
.update({ zipGeneratedAt: Math.floor(Date.now() / 1000) });
|
.update({ zipGeneratedAt: Math.floor(Date.now() / 1000) });
|
||||||
|
Loading…
Reference in New Issue
Block a user