Procházet zdrojové kódy

Added a little bit of logging

Pitu před 6 roky
rodič
revize
09a5c6bf1e
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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) });