logger-improved
All checks were successful
Deploy on push / deploy (push) Successful in 29s

This commit is contained in:
2024-02-27 16:33:25 +03:00
parent eb295549fb
commit 4c328370c2
2 changed files with 3 additions and 6 deletions

View File

@@ -177,7 +177,7 @@ async def update_shout(_, info, shout_id, shout_input=None, publish=False):
user_id = info.context.get('user_id')
if not user_id:
return {"error": "unauthorized"}
roles = info.context.get('roles')
roles = info.context.get('roles', [])
shout_input = shout_input or {}
with local_session() as session:
author = session.query(Author).filter(Author.user == user_id).first()