From 4f1eab513a6890544b216a39a7e8792219c7b262 Mon Sep 17 00:00:00 2001 From: Untone Date: Sat, 3 May 2025 10:57:55 +0300 Subject: [PATCH] unpublish-fix2 --- resolvers/editor.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/resolvers/editor.py b/resolvers/editor.py index a38f2575..cb80aa7c 100644 --- a/resolvers/editor.py +++ b/resolvers/editor.py @@ -745,9 +745,7 @@ async def unpublish_shout(_, info, shout_id: int): # Инвалидация кэша try: - # Передаем slug или ID, если slug нет - cache_key = shout.slug if shout.slug else shout.id - await invalidate_shout_related_cache(cache_key) + await invalidate_shout_related_cache(shout.id, author_id) await invalidate_shouts_cache() logger.info(f"Cache invalidated after unpublishing shout {shout_id}") except Exception as cache_err: