delete-reaction-update-stat-fix
All checks were successful
Deploy on push / deploy (push) Successful in 24s

This commit is contained in:
Untone 2024-05-06 22:44:30 +03:00
parent ce90fedacb
commit ceeeb23c26

View File

@ -334,7 +334,7 @@ async def delete_reaction(_, info, reaction_id: int):
# обновление счетчика комментариев в кеше
if str(r.kind) == ReactionKind.COMMENT.value:
await update_author_stat(author)
await update_author_stat(author.id)
await notify_reaction(reaction_dict, "delete")
return {"error": None, "reaction": reaction_dict}