mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
resolve conflicts
This commit is contained in:
parent
1b60694579
commit
d7a81483cf
1 changed files with 8 additions and 1 deletions
|
|
@ -595,7 +595,14 @@ export const saveArticleReadingProgressResolver = authorized<
|
|||
// We don't need to update the values of reading progress here
|
||||
// because the function resolver will handle that for us when
|
||||
// it resolves the properties of the Article object
|
||||
let updatedItem = await findLibraryItemById(id, uid)
|
||||
let updatedItem = await authTrx((tx) =>
|
||||
tx.getRepository(LibraryItem).findOne({
|
||||
where: {
|
||||
id,
|
||||
},
|
||||
relations: ['user'],
|
||||
})
|
||||
)
|
||||
if (!updatedItem) {
|
||||
return {
|
||||
errorCodes: [SaveArticleReadingProgressErrorCode.Unauthorized],
|
||||
|
|
|
|||
Loading…
Reference in a new issue