aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPitu <[email protected]>2020-06-25 01:36:04 +0900
committerPitu <[email protected]>2020-06-25 01:36:04 +0900
commita9fe08f9e577de8df0f742a428214c42e532d04c (patch)
treeee900a6b871e05116f9a6dea8d79299977ea943e
parentOptimize the queries fetching albums/files (diff)
downloadhost.fuwn.me-a9fe08f9e577de8df0f742a428214c42e532d04c.tar.xz
host.fuwn.me-a9fe08f9e577de8df0f742a428214c42e532d04c.zip
Update error message
-rw-r--r--src/api/routes/albums/link/linkDELETE.js2
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 })