update-shout-fix-3
This commit is contained in:
parent
7c75c2accc
commit
5943f9bf81
|
@ -187,6 +187,7 @@ async def update_shout(_, info, shout_id, shout_input=None, publish=False):
|
||||||
with local_session() as session:
|
with local_session() as session:
|
||||||
author = session.query(Author).filter(Author.user == user_id).first()
|
author = session.query(Author).filter(Author.user == user_id).first()
|
||||||
if author:
|
if author:
|
||||||
|
logger.info(f'author detected {author.dict()}')
|
||||||
shout_by_id = session.query(Shout).filter(Shout.id == shout_id).first()
|
shout_by_id = session.query(Shout).filter(Shout.id == shout_id).first()
|
||||||
if not shout_by_id:
|
if not shout_by_id:
|
||||||
return {'error': 'shout not found'}
|
return {'error': 'shout not found'}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user