Sfoglia il codice sorgente

Added a little bit of logging

Pitu 6 anni fa
parent
commit
09a5c6bf1e
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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) });