Explorar el Código

Added a little bit of logging

Pitu hace 6 años
padre
commit
09a5c6bf1e
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      controllers/albumsController.js

+ 1 - 0
controllers/albumsController.js

@@ -165,6 +165,7 @@ albumsController.generateZip = async (req, res, next) => {
 			.generateNodeStream({ type: 'nodebuffer', streamFiles: true })
 			.pipe(fs.createWriteStream(zipPath))
 			.on('finish', async () => {
+				console.log(`Generated zip for album identifier: ${identifier}`);
 				await db.table('albums')
 					.where('id', album.id)
 					.update({ zipGeneratedAt: Math.floor(Date.now() / 1000) });