update-shout-fix-4
This commit is contained in:
parent
5943f9bf81
commit
78c7a41c46
|
@ -233,8 +233,9 @@ async def load_shouts_by(_, _info, options):
|
|||
@login_required
|
||||
@query.field('load_shouts_drafts')
|
||||
async def load_shouts_drafts(_, info):
|
||||
user_id = info.context['user_id']
|
||||
|
||||
user_id = info.context.get('user_id')
|
||||
shouts = []
|
||||
if user_id:
|
||||
q = (
|
||||
select(Shout)
|
||||
.options(joinedload(Shout.authors), joinedload(Shout.topics))
|
||||
|
|
Loading…
Reference in New Issue
Block a user