fix slug-id
This commit is contained in:
parent
f772f41784
commit
6d59916804
|
@ -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"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user