Аdd fields to updateShout (#76)

- lead
- description
This commit is contained in:
Ilya Y 2023-08-21 21:51:06 +03:00 committed by GitHub
parent 5d4cfe0819
commit 9c6028d264
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,8 @@ async def create_shout(_, info, inp):
new_shout = Shout.create(**{
"title": inp.get("title"),
"subtitle": inp.get('subtitle'),
"lead": inp.get('lead'),
"description": inp.get('description'),
"body": inp.get("body", ''),
"layout": inp.get("layout"),
"authors": inp.get("authors", []),

View File

@ -98,6 +98,8 @@ input ShoutInput {
slug: String
title: String
body: String
lead: String
description: String
layout: String
media: String
authors: [String]