Explorar o código

Added a little bit of logging

Pitu %!s(int64=6) %!d(string=hai) anos
pai
achega
09a5c6bf1e
Modificáronse 1 ficheiros con 1 adicións e 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) });