summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bucky/search/lexicon.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/bucky/search/lexicon.js b/bucky/search/lexicon.js
index 97a5864..4e6009f 100644
--- a/bucky/search/lexicon.js
+++ b/bucky/search/lexicon.js
@@ -63,25 +63,25 @@ function parse_comments() {
.fetchAll()
.then((comments) => {
console.log("got comments", comments.length);
- comments.forEach((comment) => {
+ for (const comment of comments) {
total += parse_terms({
string: comment.get("comment").toString(),
thread: comment.get("thread"),
comment: comment.get("id"),
});
- });
+ }
});
}
function parse_files() {
return db.File.fetchAll().then((files) => {
console.log("got files", files.length);
- files.forEach((file) => {
+ for (const file of files) {
total += parse_terms({
string: file.get("filename"),
thread: file.get("thread"),
file: file.get("id"),
});
- });
+ }
});
}