diff options
| author | Pitu <[email protected]> | 2020-06-25 01:36:04 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2020-06-25 01:36:04 +0900 |
| commit | a9fe08f9e577de8df0f742a428214c42e532d04c (patch) | |
| tree | ee900a6b871e05116f9a6dea8d79299977ea943e | |
| parent | Optimize the queries fetching albums/files (diff) | |
| download | host.fuwn.me-a9fe08f9e577de8df0f742a428214c42e532d04c.tar.xz host.fuwn.me-a9fe08f9e577de8df0f742a428214c42e532d04c.zip | |
Update error message
| -rw-r--r-- | src/api/routes/albums/link/linkDELETE.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/albums/link/linkDELETE.js b/src/api/routes/albums/link/linkDELETE.js index 23db411..b02d0b4 100644 --- a/src/api/routes/albums/link/linkDELETE.js +++ b/src/api/routes/albums/link/linkDELETE.js @@ -15,7 +15,7 @@ class linkDELETE extends Route { .where({ identifier, userId: user.id }) .first(); - if (!link) return res.status(400).json({ message: 'Identifier doesn\'t exist' }); + if (!link) return res.status(400).json({ message: 'Identifier doesn\'t exist or doesnt\'t belong to the user' }); await db.table('links') .where({ id: link.id }) |