diff --git a/src/routes/api/note_map.js b/src/routes/api/note_map.js index 9f33960d2..11fc9a3e6 100644 --- a/src/routes/api/note_map.js +++ b/src/routes/api/note_map.js @@ -27,8 +27,8 @@ function buildDescendantCountMap(noteIdsToCount) { return noteIdToCountMap[noteId]; } - noteIdsToCount.forEach((nodeId) => { - getCount(nodeId); + noteIdsToCount.forEach((noteId) => { + getCount(noteId); }); return noteIdToCountMap;