refactored-get-my-shout-2

This commit is contained in:
Untone 2024-03-07 14:44:07 +03:00
parent 0d111bda47
commit 0182b501fe

View File

@ -38,7 +38,7 @@ async def get_my_shout(_, info, shout_id: int):
lambda x: x.id == author.id, [x for x in shout.authors]
):
return {'error': 'forbidden', 'shout': None}
return {'error': None, 'shout': shout.dict()}
return {'error': None, 'shout': shout}
@query.field('get_shouts_drafts')