Skip to content

Commit

Permalink
fix: allow discussed feed to be public (#2265)
Browse files Browse the repository at this point in the history
Discussed feed should be public available.
  • Loading branch information
rebelchris authored Sep 19, 2024
1 parent 30f1ebb commit a695426
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions __tests__/comments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,6 @@ describe('query commentFeed', () => {
});
});

it('should not allow unauthenticated users', () =>
testQueryErrorCode(client, { query: QUERY }, 'UNAUTHENTICATED'));

it('should fetch comments feed', async () => {
loggedUser = '1';
const res = await client.query(QUERY, { variables: { first: 20 } });
Expand Down
2 changes: 1 addition & 1 deletion src/schema/comments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export const typeDefs = /* GraphQL */ `
Paginate first
"""
first: Int
): CommentConnection! @auth
): CommentConnection!
"""
Get the comments of a post
Expand Down

0 comments on commit a695426

Please sign in to comment.