some-more-fixes

This commit is contained in:
2023-10-11 22:47:25 +03:00
parent 8c87457a09
commit 85fc48b3c8
2 changed files with 9 additions and 5 deletions

View File

@@ -44,7 +44,9 @@ async def update_chat(_, info, chat_new):
@mutation.field("createChat")
@login_required
async def create_chat(_, info, title="", members=[]):
async def create_chat(_, info, title="", members=None):
if members is None:
members = []
chat = None
author_id = info.context["author_id"]
print("create_chat members: %r" % members)