This commit is contained in:
@@ -515,7 +515,7 @@ async def publish_draft(_: None, info: GraphQLResolveInfo, draft_id: int) -> dic
|
|||||||
# Возвращаем обновленный черновик с информацией о shout
|
# Возвращаем обновленный черновик с информацией о shout
|
||||||
draft_dict = create_draft_dict(draft)
|
draft_dict = create_draft_dict(draft)
|
||||||
|
|
||||||
# Добавляем информацию о shout
|
# Добавляем информацию о публикации
|
||||||
draft_dict["shout"] = {"id": shout.id, "slug": shout.slug, "published_at": shout.published_at}
|
draft_dict["shout"] = {"id": shout.id, "slug": shout.slug, "published_at": shout.published_at}
|
||||||
|
|
||||||
return {"draft": draft_dict}
|
return {"draft": draft_dict}
|
||||||
|
|||||||
@@ -107,13 +107,6 @@ type Shout {
|
|||||||
stat: Stat
|
stat: Stat
|
||||||
score: Float
|
score: Float
|
||||||
}
|
}
|
||||||
|
|
||||||
type PublicationInfo {
|
|
||||||
id: Int!
|
|
||||||
slug: String!
|
|
||||||
published_at: Int
|
|
||||||
}
|
|
||||||
|
|
||||||
type Draft {
|
type Draft {
|
||||||
id: Int!
|
id: Int!
|
||||||
created_at: Int!
|
created_at: Int!
|
||||||
@@ -138,7 +131,7 @@ type Draft {
|
|||||||
deleted_by: Author
|
deleted_by: Author
|
||||||
authors: [Author]!
|
authors: [Author]!
|
||||||
topics: [Topic]!
|
topics: [Topic]!
|
||||||
publication: PublicationInfo
|
shout: Shout
|
||||||
}
|
}
|
||||||
|
|
||||||
type Stat {
|
type Stat {
|
||||||
|
|||||||
Reference in New Issue
Block a user