mirror of
https://github.com/iptv-org/iptv
synced 2026-09-06 03:50:47 -04:00
Update utils.ts
This commit is contained in:
+7
-3
@@ -244,9 +244,9 @@ export async function loadDiscussions() {
|
||||
})
|
||||
|
||||
const query = `
|
||||
query ($owner: String!, $repo: String!, $cursor: String) {
|
||||
query ($owner: String!, $repo: String!, $cursor: String, $orderBy: DiscussionOrder) {
|
||||
repository(owner: $owner, name: $repo) {
|
||||
discussions(first: 100, after: $cursor, states: OPEN) {
|
||||
discussions(first: 100, after: $cursor, states: OPEN, orderBy: $orderBy) {
|
||||
nodes {
|
||||
number
|
||||
body
|
||||
@@ -265,7 +265,11 @@ export async function loadDiscussions() {
|
||||
|
||||
const result = await octokit.graphql.paginate(query, {
|
||||
owner: 'iptv-org',
|
||||
repo: 'iptv'
|
||||
repo: 'iptv',
|
||||
orderBy: {
|
||||
field: 'CREATED_AT',
|
||||
direction: 'ASC'
|
||||
}
|
||||
})
|
||||
|
||||
discussions = result.repository.discussions.nodes
|
||||
|
||||
Reference in New Issue
Block a user