File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,6 +122,13 @@ export const CommunityHelp: CollectionConfig = {
122122 index : true ,
123123 relationTo : 'docs' ,
124124 } ,
125+ {
126+ name : 'threadCreatedAt' ,
127+ type : 'date' ,
128+ admin : {
129+ position : 'sidebar' ,
130+ } ,
131+ } ,
125132 ] ,
126133 labels : {
127134 plural : 'Community Helps' ,
Original file line number Diff line number Diff line change @@ -5114,6 +5114,7 @@ export interface CommunityHelp {
51145114 slug ?: string | null ;
51155115 helpful ?: boolean | null ;
51165116 relatedDocs ?: ( string | Doc ) [ ] | null ;
5117+ threadCreatedAt ?: string | null ;
51175118 updatedAt : string ;
51185119 createdAt : string ;
51195120}
@@ -6390,6 +6391,7 @@ export interface CommunityHelpSelect<T extends boolean = true> {
63906391 slug ?: T ;
63916392 helpful ?: T ;
63926393 relatedDocs ?: T ;
6394+ threadCreatedAt ?: T ;
63936395 updatedAt ?: T ;
63946396 createdAt ?: T ;
63956397}
Original file line number Diff line number Diff line change @@ -252,6 +252,7 @@ async function fetchDiscord() {
252252 communityHelpJSON : thread ,
253253 communityHelpType : 'discord' ,
254254 discordID : thread . info . id ,
255+ threadCreatedAt : thread . info . createdAt ,
255256 title : thread . info . name ,
256257 } )
257258
Original file line number Diff line number Diff line change @@ -240,6 +240,7 @@ async function fetchGitHub(): Promise<void> {
240240 communityHelpJSON : discussion ,
241241 communityHelpType : 'github' ,
242242 githubID : discussion . id ,
243+ threadCreatedAt : discussion . createdAt ,
243244 title : discussion . title ,
244245 } )
245246
You can’t perform that action at this time.
0 commit comments