From b5727b1b854a1fb10d24876efb12965fa6ed22d9 Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 5 Mar 2024 18:17:48 +0300 Subject: [PATCH] update-shout-fix-10 --- resolvers/editor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/resolvers/editor.py b/resolvers/editor.py index ff086870..2b4b3100 100644 --- a/resolvers/editor.py +++ b/resolvers/editor.py @@ -179,6 +179,7 @@ async def update_shout(_, info, shout_id: int, shout_input=None, publish=False): roles = info.context.get('roles', []) shout_input = shout_input or {} current_time = int(time.time()) + shout_id = shout_id or shout_input.get('id', shout_id) slug = shout_input.get('slug') if not user_id: return {"error": "unauthorized"}