schema-fix
Some checks failed
Deploy on push / deploy (push) Failing after 4m10s

This commit is contained in:
2025-08-23 13:29:36 +03:00
parent 0e1e7813be
commit 2d8547c980
2 changed files with 2 additions and 9 deletions

View File

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

View File

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