Update error message

This commit is contained in:
Pitu 2020-06-25 01:36:04 +09:00
parent b526d88036
commit a9fe08f9e5
1 changed files with 1 additions and 1 deletions

View File

@ -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 })