Linting changes

This commit is contained in:
Jackson Harper 2022-05-02 15:58:40 -07:00
parent 453b301e74
commit b649d583b7

View file

@ -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] }