mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Linting changes
This commit is contained in:
parent
453b301e74
commit
b649d583b7
1 changed files with 3 additions and 1 deletions
|
|
@ -427,7 +427,9 @@ export const getArticleResolver: ResolverFn<
|
|||
await createIntercomEvent('get-article', claims.uid)
|
||||
|
||||
// We allow the backend to use the ID instead of a slug to fetch the article
|
||||
const page = await getPageByParam({ userId: claims.uid, slug }) || await getPageByParam({ userId: claims.uid, _id: slug })
|
||||
const page =
|
||||
(await getPageByParam({ userId: claims.uid, slug })) ||
|
||||
(await getPageByParam({ userId: claims.uid, _id: slug }))
|
||||
|
||||
if (!page) {
|
||||
return { errorCodes: [ArticleErrorCode.NotFound] }
|
||||
|
|
|
|||
Loading…
Reference in a new issue