Remove subscription from shared page

This commit is contained in:
Hongbo Wu 2022-12-12 17:53:58 +08:00
parent 70ed3dccb7
commit 1338b1fc10

View file

@ -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)