@ozdao/prometheus-framework 0.2.153 → 0.2.154
Sign up to get free protection for your applications and to get access to all the features.
package/dist/community.server.js
CHANGED
@@ -431,7 +431,7 @@ const commentControllerFactory = (db) => {
|
|
431
431
|
pipeline.unshift({ $match: { user: { $nin: blockedMembers } } });
|
432
432
|
}
|
433
433
|
const comments = await Comment.aggregate(pipeline);
|
434
|
-
commentsTree = buildCommentTree(comments);
|
434
|
+
let commentsTree = buildCommentTree(comments);
|
435
435
|
console.log(commentsTree);
|
436
436
|
res.status(200).json(commentsTree);
|
437
437
|
} catch (error) {
|
@@ -430,7 +430,7 @@ const commentControllerFactory = (db) => {
|
|
430
430
|
pipeline.unshift({ $match: { user: { $nin: blockedMembers } } });
|
431
431
|
}
|
432
432
|
const comments = await Comment.aggregate(pipeline);
|
433
|
-
commentsTree = buildCommentTree(comments);
|
433
|
+
let commentsTree = buildCommentTree(comments);
|
434
434
|
console.log(commentsTree);
|
435
435
|
res.status(200).json(commentsTree);
|
436
436
|
} catch (error) {
|
package/package.json
CHANGED