From 903e6b7cccbcfd007408063b6f094119ec76d7a5 Mon Sep 17 00:00:00 2001 From: WPum <27683756+WPum@users.noreply.github.com> Date: Mon, 5 Apr 2021 04:11:42 +0800 Subject: [PATCH] correct a typo in #1820 fix (#1824) Thanks! --- src/routes/api/link_map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/api/link_map.js b/src/routes/api/link_map.js index ee87e61fd..c73e7011b 100644 --- a/src/routes/api/link_map.js +++ b/src/routes/api/link_map.js @@ -25,7 +25,7 @@ function getRelations(noteIds) { LEFT JOIN branches ON branches.parentNoteId = rel.noteId AND branches.noteId = rel.value AND branches.isDeleted = 0 WHERE (rel.noteId IN (???) OR rel.value IN (???)) AND rel.type = 'relation' - AND name NOT IN ('imageLink', 'relationMapLink', 'template') + AND rel.name NOT IN ('imageLink', 'relationMapLink', 'template') AND rel.isDeleted = 0 AND rel.noteId != '' AND rel.value != ''