fix slug-id

This commit is contained in:
tonyrewin 2023-01-11 18:16:21 +03:00 committed by bniwredyc
parent f772f41784
commit 6d59916804

View File

@ -196,7 +196,7 @@ async def update_reaction(_, info, reaction={}):
if not r: if not r:
return {"error": "invalid reaction id"} return {"error": "invalid reaction id"}
if r.createdBy != user.slug: if r.createdBy != user.id:
return {"error": "access denied"} return {"error": "access denied"}
r.body = reaction["body"] r.body = reaction["body"]