diff options
| author | Pitu <[email protected]> | 2020-05-11 00:19:10 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2020-05-11 00:19:10 +0900 |
| commit | b886fda0793b8a26de58cd462acf6676a0a8e7ed (patch) | |
| tree | 07fcc32486b7654bf3ba173cef4061dc7cb6f12e /src/api/routes/albums | |
| parent | fix: remove uuid from user registration (diff) | |
| download | host.fuwn.me-b886fda0793b8a26de58cd462acf6676a0a8e7ed.tar.xz host.fuwn.me-b886fda0793b8a26de58cd462acf6676a0a8e7ed.zip | |
chore: cleanup and todo
Diffstat (limited to 'src/api/routes/albums')
| -rw-r--r-- | src/api/routes/albums/albumZipGET.js | 1 | ||||
| -rw-r--r-- | src/api/routes/albums/link/linkDELETE.js | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/api/routes/albums/albumZipGET.js b/src/api/routes/albums/albumZipGET.js index d1d3e16..a6ef6fd 100644 --- a/src/api/routes/albums/albumZipGET.js +++ b/src/api/routes/albums/albumZipGET.js @@ -13,6 +13,7 @@ class albumGET extends Route { const { identifier } = req.params; if (!identifier) return res.status(400).json({ message: 'Invalid identifier supplied' }); + // TODO: Do we really want to let anyone create a zip of an album? /* Make sure it exists and it's enabled */ diff --git a/src/api/routes/albums/link/linkDELETE.js b/src/api/routes/albums/link/linkDELETE.js index 904687f..23db411 100644 --- a/src/api/routes/albums/link/linkDELETE.js +++ b/src/api/routes/albums/link/linkDELETE.js @@ -15,8 +15,6 @@ class linkDELETE extends Route { .where({ identifier, userId: user.id }) .first(); - dump(link); - if (!link) return res.status(400).json({ message: 'Identifier doesn\'t exist' }); await db.table('links') |