Skip to content

Commit cb0e603

Browse files
committed
update api
1 parent e046225 commit cb0e603

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/scripts/fetch-comments.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ async function fetchDiscussions(categoryId) {
1414
},
1515
body: JSON.stringify({
1616
query: `
17-
query($repoOwner: String!, $repoName: String!, $categoryName: String!) {
17+
query($repoOwner: String!, $repoName: String!, $categoryId: ID!) {
1818
repository(owner: $repoOwner, name: $repoName) {
19-
discussions(first: 100, categoryId: $categoryName, orderBy: {field: CREATED_AT, direction: DESC}) {
19+
discussions(first: 100, categoryId: $categoryId, orderBy: {field: CREATED_AT, direction: DESC}) {
2020
nodes {
2121
id
2222
title

0 commit comments

Comments
 (0)