From 5b211c349e24a63fe2a410948659f912088fb1ac Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 31 Oct 2024 09:33:17 +0300 Subject: [PATCH] create_shout-community-1-fix --- resolvers/editor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/resolvers/editor.py b/resolvers/editor.py index df87a1db..f640fa84 100644 --- a/resolvers/editor.py +++ b/resolvers/editor.py @@ -118,6 +118,7 @@ async def create_shout(_, info, inp): "slug": slug, "topics": inp.get("topics", []), "published_at": None, + "community": 1, "created_at": current_time, # Set created_at as Unix timestamp } same_slug_shout = session.query(Shout).filter(Shout.slug == shout_dict.get("slug")).first()