Add siteName to article so its available on debug page

This commit is contained in:
Jackson Harper
2024-08-26 14:32:43 +08:00
parent be94f50ee5
commit 0ed6c5cf86
3 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,7 @@ export const articleFragment = gql`
description
linkId
state
siteName
wordsCount
}
`

View File

@ -969,6 +969,7 @@ export type ArticleAttributes = {
author?: string
image?: string
savedAt: string
siteName?: string
createdAt: string
publishedAt?: string
description?: string

View File

@ -50,6 +50,8 @@ export default function Debug(): JSX.Element {
value: article.originalArticleUrl,
})
result.push({ name: 'author', value: article.author ?? 'null' })
result.push({ name: 'siteName', value: article.siteName ?? 'null' })
result.push({ name: 'image', value: article.image ?? 'null' })
result.push({ name: 'savedAt', value: article.savedAt })
result.push({ name: 'createdAt', value: article.createdAt })