create_shout-community-1-fix
All checks were successful
Deploy on push / deploy (push) Successful in 1m15s
All checks were successful
Deploy on push / deploy (push) Successful in 1m15s
This commit is contained in:
parent
a578e8160e
commit
5b211c349e
|
@ -118,6 +118,7 @@ async def create_shout(_, info, inp):
|
||||||
"slug": slug,
|
"slug": slug,
|
||||||
"topics": inp.get("topics", []),
|
"topics": inp.get("topics", []),
|
||||||
"published_at": None,
|
"published_at": None,
|
||||||
|
"community": 1,
|
||||||
"created_at": current_time, # Set created_at as Unix timestamp
|
"created_at": current_time, # Set created_at as Unix timestamp
|
||||||
}
|
}
|
||||||
same_slug_shout = session.query(Shout).filter(Shout.slug == shout_dict.get("slug")).first()
|
same_slug_shout = session.query(Shout).filter(Shout.slug == shout_dict.get("slug")).first()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user