create_shout-community-1-fix
All checks were successful
Deploy on push / deploy (push) Successful in 1m15s

This commit is contained in:
Untone 2024-10-31 09:33:17 +03:00
parent a578e8160e
commit 5b211c349e

View File

@ -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()