We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64eab89 commit 96aab77Copy full SHA for 96aab77
code/services/db-service/src/comments.go
@@ -16,7 +16,7 @@ func (s *DBServer) ListComments(ctx context.Context, req *dbpb.ListCommentsReque
16
collection := s.Mongo.Collection("comments")
17
filter := bson.M{}
18
if req.GetThreadId() != "" {
19
- filter["thread_id"] = req.GetThreadId()
+ filter["parent_id"] = req.GetThreadId()
20
}
21
cursor, err := collection.Find(ctx, filter, getFindOptions(req.Offset, req.Limit, req.GetSortBy()))
22
if err != nil {
0 commit comments