mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add publishedAt to the updatePageInput
This commit is contained in:
parent
d96f0fefbb
commit
bd12ecd7ec
4 changed files with 4 additions and 0 deletions
|
|
@ -2813,6 +2813,7 @@ export type UpdatePageInput = {
|
|||
byline?: InputMaybe<Scalars['String']>;
|
||||
description?: InputMaybe<Scalars['String']>;
|
||||
pageId: Scalars['ID'];
|
||||
publishedAt?: InputMaybe<Scalars['Date']>;
|
||||
savedAt?: InputMaybe<Scalars['Date']>;
|
||||
title?: InputMaybe<Scalars['String']>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2166,6 +2166,7 @@ input UpdatePageInput {
|
|||
byline: String
|
||||
description: String
|
||||
pageId: ID!
|
||||
publishedAt: Date
|
||||
savedAt: Date
|
||||
title: String
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ export const updatePageResolver = authorized<
|
|||
description: input.description ?? undefined,
|
||||
author: input.byline ?? undefined,
|
||||
savedAt: input.savedAt ? new Date(input.savedAt) : undefined,
|
||||
publishedAt: input.publishedAt ? new Date(input.publishedAt) : undefined,
|
||||
}
|
||||
|
||||
const updateResult = await updatePage(input.pageId, pageData, { ...ctx, uid })
|
||||
|
|
|
|||
|
|
@ -565,6 +565,7 @@ const schema = gql`
|
|||
description: String
|
||||
byline: String
|
||||
savedAt: Date
|
||||
publishedAt: Date
|
||||
}
|
||||
|
||||
type UpdatePageSuccess {
|
||||
|
|
|
|||
Loading…
Reference in a new issue