Skip to content

Commit

Permalink
Update types
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Jul 18, 2024
1 parent 85bf19c commit 23a110e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/services/datahub/generated-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,8 @@ export type FindPostsFilter = {
OR?: InputMaybe<Array<FindPostsFilter>>
activeStaking?: InputMaybe<Scalars['Boolean']['input']>
approvedInRootPost?: InputMaybe<Scalars['Boolean']['input']>
/** Do not provide this parameter if you do not need include moderation filter in response. */
blockedByModeration?: InputMaybe<Scalars['Boolean']['input']>
createdAtTime?: InputMaybe<Scalars['String']['input']>
/** Datetime as ISO 8601 string */
createdAtTimeGt?: InputMaybe<Scalars['String']['input']>
Expand Down
4 changes: 2 additions & 2 deletions src/services/datahub/posts/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ async function getPaginatedPostIdsByRootPostId({
},
],
}
: ({
: {
rootPostId: postId,
approvedInRootPost: !onlyDisplayUnapprovedMessages,
blockedByModeration: false,
} as any),
},
orderBy: onlyDisplayUnapprovedMessages
? 'createdAtTime'
: 'approvedInRootPostAtTime',
Expand Down

0 comments on commit 23a110e

Please sign in to comment.