mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix test
This commit is contained in:
parent
e9b31e375f
commit
e22d209721
5 changed files with 13 additions and 13 deletions
|
|
@ -1621,8 +1621,8 @@ export type ParseResult = {
|
|||
length: Scalars['Int'];
|
||||
previewImage?: InputMaybe<Scalars['String']>;
|
||||
publishedDate?: InputMaybe<Scalars['Date']>;
|
||||
siteIcon?: InputMaybe<Scalars['String']>;
|
||||
siteName?: InputMaybe<Scalars['String']>;
|
||||
siteIcon: Scalars['String'];
|
||||
siteName: Scalars['String'];
|
||||
textContent: Scalars['String'];
|
||||
title: Scalars['String'];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1178,8 +1178,8 @@ input ParseResult {
|
|||
length: Int!
|
||||
previewImage: String
|
||||
publishedDate: Date
|
||||
siteIcon: String
|
||||
siteName: String
|
||||
siteIcon: String!
|
||||
siteName: String!
|
||||
textContent: String!
|
||||
title: String!
|
||||
}
|
||||
|
|
|
|||
8
packages/api/src/readability.d.ts
vendored
8
packages/api/src/readability.d.ts
vendored
|
|
@ -161,11 +161,11 @@ declare module '@omnivore/readability' {
|
|||
/** Article site icon */
|
||||
siteIcon: string
|
||||
/** Article preview image */
|
||||
previewImage?: string
|
||||
previewImage?: string | null
|
||||
/** Article published date */
|
||||
publishedDate?: Date
|
||||
dom?: Element
|
||||
language?: string
|
||||
publishedDate?: Date | null
|
||||
dom?: Element | null
|
||||
language?: string | null
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -534,8 +534,8 @@ const schema = gql`
|
|||
textContent: String!
|
||||
length: Int!
|
||||
excerpt: String!
|
||||
siteName: String
|
||||
siteIcon: String
|
||||
siteName: String!
|
||||
siteIcon: String!
|
||||
previewImage: String
|
||||
publishedDate: Date
|
||||
language: String
|
||||
|
|
|
|||
|
|
@ -233,8 +233,8 @@ export const parsedContentToPage = ({
|
|||
}),
|
||||
pageType,
|
||||
hash: uploadFileHash || stringToHash(parsedContent?.content || url),
|
||||
image: parsedContent?.previewImage,
|
||||
publishedAt: validatedDate(parsedContent?.publishedDate),
|
||||
image: parsedContent?.previewImage ?? undefined,
|
||||
publishedAt: validatedDate(parsedContent?.publishedDate ?? undefined),
|
||||
uploadFileId: uploadFileId,
|
||||
readingProgressPercent: 0,
|
||||
readingProgressAnchorIndex: 0,
|
||||
|
|
@ -242,7 +242,7 @@ export const parsedContentToPage = ({
|
|||
createdAt: saveTime || new Date(),
|
||||
savedAt: saveTime || new Date(),
|
||||
siteName: parsedContent?.siteName,
|
||||
language: parsedContent?.language,
|
||||
language: parsedContent?.language ?? undefined,
|
||||
siteIcon: parsedContent?.siteIcon,
|
||||
wordsCount: wordsCount(parsedContent?.textContent || ''),
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue