Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonSharratt committed Feb 7, 2020
1 parent f2bccf4 commit bcdf634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion microservices/forumApi/db/model/topic.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ model.getAll = function(query, limit, page, user, callback){
$and: [
{$or: [
{$eq: [ { if: {$eq: ["$topic_id", "*"] }, then: "*", else: {$toObjectId: "$topic_id"} }, "$$topicId"] },
{$eq: [{$toObjectId: "$topic_id"}, "$$parent"] },
{$eq: [ { if: {$eq: ["$topic_id", "*"] }, then: "*", else: {$toObjectId: "$topic_id"} }, "$$parent"] },
{$eq: ["$topic_id", "*"] }
]},
{$eq: ["$allow", true]}
Expand Down

0 comments on commit bcdf634

Please sign in to comment.