diff options
Diffstat (limited to 'src/api/routes')
| -rw-r--r-- | src/api/routes/albums/albumZipGET.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/routes/albums/albumZipGET.js b/src/api/routes/albums/albumZipGET.js index 0722f80..c560cff 100644 --- a/src/api/routes/albums/albumZipGET.js +++ b/src/api/routes/albums/albumZipGET.js @@ -44,7 +44,7 @@ class albumGET extends Route { Make sure the file exists just in case, and if not, continue to it's generation. */ if (exists) { - const fileName = `chibisafe-${identifier}.zip`; + const fileName = `${process.env.SERVICE_NAME}-${identifier}.zip`; return res.download(filePath, fileName); } } @@ -77,7 +77,7 @@ class albumGET extends Route { .update('zippedAt', db.fn.now()); const filePath = path.join(__dirname, '../../../../', process.env.UPLOAD_FOLDER, 'zips', `${album.userId}-${album.id}.zip`); - const fileName = `chibisafe-${identifier}.zip`; + const fileName = `${process.env.SERVICE_NAME}-${identifier}.zip`; return res.download(filePath, fileName); } catch (error) { log.error(error); |