Skip to content

Commit

Permalink
remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenson committed Nov 25, 2024
1 parent ee2be43 commit dbb7b20
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions server/src/core/server/graph/loaders/Comments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,18 +482,14 @@ export default (ctx: GraphContext) => ({
throw new StoryNotFoundError(comment.storyID);
}

// does this determine whether we keep querying for all comments on load?
// no doesn't seem to do anything
console.log('allChildComments retrieving all child comments (9999)')

const cacheAvailable = await ctx.cache.available(ctx.tenant.id);
if (!cacheAvailable) {
return retrieveChildrenForParentConnection(
ctx.mongo,
ctx.tenant.id,
comment,
{
first: 9999, // dev here 9999
first: 9999,
orderBy: defaultTo(orderBy, GQLCOMMENT_SORT.CREATED_AT_ASC),
},
story.isArchived
Expand Down

0 comments on commit dbb7b20

Please sign in to comment.