resolvers-renamed
Some checks failed
deploy / deploy (push) Failing after 1m7s

This commit is contained in:
2023-11-28 11:33:50 +03:00
parent 493f6106ab
commit 15139249f1
8 changed files with 34 additions and 34 deletions

View File

@@ -9,7 +9,7 @@ from models.chat import Chat, ChatUpdate
from services.presence import notify_chat
@mutation.field("updateChat")
@mutation.field("update_chat")
@login_required
async def update_chat(_, info, chat_new: ChatUpdate):
"""
@@ -45,7 +45,7 @@ async def update_chat(_, info, chat_new: ChatUpdate):
return {"error": None, "chat": chat}
@mutation.field("createChat")
@mutation.field("create_chat")
@login_required
async def create_chat(_, info, title="", members=None):
if members is None:
@@ -92,7 +92,7 @@ async def create_chat(_, info, title="", members=None):
return {"error": None, "chat": chat}
@mutation.field("deleteChat")
@mutation.field("delete_chat")
@login_required
async def delete_chat(_, info, chat_id: str):
author_id = info.context["author_id"]