fix-revalidation
All checks were successful
Deploy on push / deploy (push) Successful in 59s

This commit is contained in:
2025-02-04 00:01:54 +03:00
parent 33ddfc6c31
commit 84de0c5538
2 changed files with 5 additions and 3 deletions

View File

@@ -281,8 +281,10 @@ async def create_reaction(_, info, reaction):
logger.debug(f"Creating reaction with data: {reaction_input}")
logger.debug(f"Author ID: {author_id}, Shout ID: {shout_id}")
if not shout_id or not author_id:
return {"error": "Shout ID and author ID are required to create a reaction."}
if not author_id:
return {"error": "Author ID is required to create a reaction."}
if not shout_id:
return {"error": "Shout ID is required to create a reaction."}
try:
with local_session() as session: