aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/files/fileGET.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/files/fileGET.js b/src/api/routes/files/fileGET.js
index e9ce90e..0a6f2de 100644
--- a/src/api/routes/files/fileGET.js
+++ b/src/api/routes/files/fileGET.js
@@ -31,7 +31,7 @@ class fileGET extends Route {
*/
const tags = await db.table('fileTags')
.where('fileId', id)
- .join('tags', 'tags.id', 'fileTags.id')
+ .join('tags', 'tags.id', 'fileTags.tagId')
.select('tags.id', 'tags.uuid', 'tags.name');
return res.json({