fix labels and highlights were deleted when deleting items

This commit is contained in:
Hongbo Wu 2023-10-05 10:03:06 +08:00
parent 8d5e6455e3
commit 16f72d6a74
2 changed files with 0 additions and 5 deletions

View file

@ -672,10 +672,6 @@ export const setBookmarkArticleResolver = authorized<
page.id,
{
state: ArticleSavingRequestStatus.Deleted,
labels: [],
highlights: [],
readingProgressAnchorIndex: 0,
readingProgressPercent: 0,
},
pageContext
)

View file

@ -765,7 +765,6 @@ describe('Article API', () => {
await graphqlRequest(query, authToken).expect(200)
const page = await getPageById(articleId)
expect(page?.state).to.eql(ArticleSavingRequestStatus.Deleted)
expect(page?.highlights).to.eql([])
})
})
})