create-reaction-shout
All checks were successful
Deploy on push / deploy (push) Successful in 6s

This commit is contained in:
Untone 2024-11-02 22:38:40 +03:00
parent 6d61e038e7
commit 08fb1d3510

View File

@ -311,7 +311,10 @@ async def create_reaction(_, info, reaction):
follow(None, info, "shout", shout_id=shout_id)
except Exception:
pass
shout = session.query(Shout).filter(Shout.id == shout_id).first()
if not shout:
return {"error": "Shout not found"}
rdict['shout'] = shout.dict()
rdict["created_by"] = author_dict
return {"reaction": rdict}
except Exception as e: