mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Update readAt when saving reading progress
This commit is contained in:
parent
577c6e84fb
commit
b1d968ff23
1 changed files with 3 additions and 2 deletions
|
|
@ -49,9 +49,9 @@ import {
|
|||
isParsingTimeout,
|
||||
pageError,
|
||||
stringToHash,
|
||||
titleForFilePath,
|
||||
userDataToUser,
|
||||
validatedDate,
|
||||
titleForFilePath,
|
||||
} from '../../utils/helpers'
|
||||
import {
|
||||
ParsedContentPuppeteer,
|
||||
|
|
@ -729,9 +729,10 @@ export const saveArticleReadingProgressResolver = authorized<
|
|||
readingProgressAnchorIndex: shouldUpdate
|
||||
? readingProgressAnchorIndex
|
||||
: page.readingProgressAnchorIndex,
|
||||
readAt: new Date(),
|
||||
}
|
||||
|
||||
shouldUpdate && (await updatePage(id, updatedPart, { pubsub, uid }))
|
||||
await updatePage(id, updatedPart, { pubsub, uid })
|
||||
|
||||
return {
|
||||
updatedArticle: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue