diff options
| author | Pitu <[email protected]> | 2017-10-04 02:46:31 -0300 |
|---|---|---|
| committer | Pitu <[email protected]> | 2017-10-04 02:46:31 -0300 |
| commit | 09a5c6bf1eefd4beedcaed92b888be5e3822883f (patch) | |
| tree | a5d9fd2a64a3d4147969be0b8a1a3f692aa1abb5 /controllers/albumsController.js | |
| parent | Bypass file if not found when zipping an album (diff) | |
| download | host.fuwn.me-09a5c6bf1eefd4beedcaed92b888be5e3822883f.tar.xz host.fuwn.me-09a5c6bf1eefd4beedcaed92b888be5e3822883f.zip | |
Added a little bit of logging
Diffstat (limited to 'controllers/albumsController.js')
| -rw-r--r-- | controllers/albumsController.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/controllers/albumsController.js b/controllers/albumsController.js index 11b7903..2cdd06e 100644 --- a/controllers/albumsController.js +++ b/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) }); |