diff options
| author | Pitu <[email protected]> | 2020-12-27 01:59:38 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2020-12-27 01:59:38 +0900 |
| commit | 726f47f301795dccebb75ac90e7ce15480693288 (patch) | |
| tree | 8b42e77cdbc6f7acaa43f39f56e34be6268b5e27 /src/api | |
| parent | Rebrand (diff) | |
| download | host.fuwn.me-726f47f301795dccebb75ac90e7ce15480693288.tar.xz host.fuwn.me-726f47f301795dccebb75ac90e7ce15480693288.zip | |
chore: use instance name for album download
Diffstat (limited to 'src/api')
| -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); |