mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Remove subscription from shared page
This commit is contained in:
parent
70ed3dccb7
commit
1338b1fc10
1 changed files with 14 additions and 2 deletions
|
|
@ -1,4 +1,9 @@
|
|||
import { Page, PageContext, Recommendation } from './types'
|
||||
import {
|
||||
ArticleSavingRequestStatus,
|
||||
Page,
|
||||
PageContext,
|
||||
Recommendation,
|
||||
} from './types'
|
||||
import { createPage, getPageByParam, updatePage } from './pages'
|
||||
|
||||
export const addRecommendation = async (
|
||||
|
|
@ -66,7 +71,14 @@ export const addRecommendation = async (
|
|||
sharedAt: new Date(),
|
||||
highlights,
|
||||
readAt: undefined,
|
||||
labels: [],
|
||||
labels: undefined,
|
||||
subscription: undefined,
|
||||
unsubHttpUrl: undefined,
|
||||
unsubMailTo: undefined,
|
||||
_id: undefined,
|
||||
archivedAt: undefined,
|
||||
state: ArticleSavingRequestStatus.Succeeded,
|
||||
taskName: undefined,
|
||||
}
|
||||
|
||||
return createPage(newPage, ctx)
|
||||
|
|
|
|||
Loading…
Reference in a new issue