From dac79b53cad3bfc758e8ad8a7cc5568c1d7fbc0a Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 6 May 2024 21:18:19 +0300 Subject: [PATCH] api-fix --- resolvers/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/editor.py b/resolvers/editor.py index e8c14f45..1ec6c8c2 100644 --- a/resolvers/editor.py +++ b/resolvers/editor.py @@ -99,7 +99,7 @@ async def get_shouts_drafts(_, info): .group_by(Shout.id) ) shouts = [shout for [shout] in session.execute(q).unique()] - return shouts + return { "shouts": shouts } @mutation.field("create_shout")