mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #228 from omnivore-app/fix/rm-isArchived-lookup
Dont perform an extra query for isArchived
This commit is contained in:
commit
cf55f3152f
1 changed files with 1 additions and 1 deletions
|
|
@ -369,7 +369,7 @@ export const functionResolvers = {
|
|||
__: unknown,
|
||||
ctx: WithDataSourcesContext & { claims: Claims }
|
||||
) {
|
||||
if (article.isArchived) return article.isArchived
|
||||
if ('isArchived' in article) return article.isArchived
|
||||
if (!ctx.claims?.uid) return false
|
||||
const userArticle = await ctx.models.userArticle.getForUser(
|
||||
ctx.claims.uid,
|
||||
|
|
|
|||
Loading…
Reference in a new issue