drafts-api-common
All checks were successful
Deploy on push / deploy (push) Successful in 25s

This commit is contained in:
2024-05-06 21:14:17 +03:00
parent 205019ce39
commit b372fd81d5
2 changed files with 2 additions and 4 deletions

View File

@@ -83,9 +83,7 @@ async def get_shouts_drafts(_, info):
# user_id = info.context.get("user_id")
author_dict = info.context.get("author")
if not author_dict:
logger.error("trying to get drafts failed")
# logger.debug(info)
return []
return {"error": "author profile was not found"}
author_id = author_dict.get("id")
shouts = []
with local_session() as session: