server-ts: Address review

This commit is contained in:
Elian Doran
2024-04-03 19:22:49 +03:00
parent f857b8a9bb
commit 5d452a1525
8 changed files with 20 additions and 22 deletions

View File

@@ -873,7 +873,7 @@ function getUndeletedParentBranchIds(noteId: string, deleteId: string) {
AND parentNote.isDeleted = 0`, [noteId, deleteId]);
}
function scanForLinks(note: BNote | null, content: string) {
function scanForLinks(note: BNote, content: string) {
if (!note || !['text', 'relationMap'].includes(note.type)) {
return;
}