From 4e21d12202230647c0d5b90596ba0b83b26497fc Mon Sep 17 00:00:00 2001 From: zadam Date: Mon, 15 Mar 2021 20:31:12 +0100 Subject: [PATCH] fix nodejs 10 compatibility, closes #1746 --- src/services/note_cache/entities/note.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/note_cache/entities/note.js b/src/services/note_cache/entities/note.js index 25e928503..3adef3148 100644 --- a/src/services/note_cache/entities/note.js +++ b/src/services/note_cache/entities/note.js @@ -405,7 +405,7 @@ class Note { return 0; } - let minDistance = 999_999; + let minDistance = 999999; for (const parent of this.parents) { minDistance = Math.min(minDistance, parent.getDistanceToAncestor(ancestorNoteId) + 1);