mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix tests
This commit is contained in:
parent
e1de55bea0
commit
a2f31c943f
1 changed files with 1 additions and 3 deletions
|
|
@ -440,7 +440,6 @@ export const getArticleResolver: ResolverFn<
|
|||
{
|
||||
userId: claims.uid,
|
||||
slug,
|
||||
state: ArticleSavingRequestStatus.Succeeded,
|
||||
},
|
||||
includeOriginalHtml
|
||||
)) ||
|
||||
|
|
@ -448,12 +447,11 @@ export const getArticleResolver: ResolverFn<
|
|||
{
|
||||
userId: claims.uid,
|
||||
_id: slug,
|
||||
state: ArticleSavingRequestStatus.Succeeded,
|
||||
},
|
||||
includeOriginalHtml
|
||||
))
|
||||
|
||||
if (!page) {
|
||||
if (!page || page.state === ArticleSavingRequestStatus.Deleted) {
|
||||
return { errorCodes: [ArticleErrorCode.NotFound] }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue