This commit is contained in:
@@ -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"]
|
||||
|
Reference in New Issue
Block a user