From ceeeb23c26110110a963cf59d1c49707be5d234c Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 6 May 2024 22:44:30 +0300 Subject: [PATCH] delete-reaction-update-stat-fix --- resolvers/reaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/reaction.py b/resolvers/reaction.py index 688a4c15..343b544a 100644 --- a/resolvers/reaction.py +++ b/resolvers/reaction.py @@ -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}