mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Formatting
This commit is contained in:
parent
a81181ee60
commit
8e1b4fb1a4
1 changed files with 8 additions and 4 deletions
|
|
@ -383,9 +383,11 @@ export const functionResolvers = {
|
|||
? ContentReader.Pdf
|
||||
: ContentReader.Web
|
||||
},
|
||||
async readingProgressPercent(article: { id: string, articleReadingProgress?: number },
|
||||
async readingProgressPercent(
|
||||
article: { id: string; articleReadingProgress?: number },
|
||||
_: unknown,
|
||||
ctx: WithDataSourcesContext & { claims: Claims }) {
|
||||
ctx: WithDataSourcesContext & { claims: Claims }
|
||||
) {
|
||||
if ('articleReadingProgress' in article) {
|
||||
return article.articleReadingProgress
|
||||
}
|
||||
|
|
@ -393,9 +395,11 @@ export const functionResolvers = {
|
|||
await ctx.models.userArticle.getByArticleId(ctx.claims.uid, article.id)
|
||||
)?.articleReadingProgress
|
||||
},
|
||||
async readingProgressAnchorIndex(article: { id: string, articleReadingProgressAnchorIndex?: number },
|
||||
async readingProgressAnchorIndex(
|
||||
article: { id: string; articleReadingProgressAnchorIndex?: number },
|
||||
_: unknown,
|
||||
ctx: WithDataSourcesContext & { claims: Claims }) {
|
||||
ctx: WithDataSourcesContext & { claims: Claims }
|
||||
) {
|
||||
if ('articleReadingProgressAnchorIndex' in article) {
|
||||
return article.articleReadingProgressAnchorIndex
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue