@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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ozdao/prometheus-framework",
3
- "version": "0.2.153",
3
+ "version": "0.2.154",
4
4
  "description": "Web3 Framework focused on user experience and ease of development.",
5
5
  "author": "OZ DAO <hello@ozdao.dev>",
6
6
  "license": "GPL-3.0-or-later",
@@ -160,7 +160,7 @@ const commentControllerFactory = (db) => {
160
160
  return rootComments;
161
161
  }
162
162
 
163
- commentsTree = buildCommentTree(comments)
163
+ let commentsTree = buildCommentTree(comments)
164
164
 
165
165
  console.log(commentsTree)
166
166