from-topic-follower-fix
Some checks failed
deploy / deploy (push) Failing after 5s

This commit is contained in:
2024-01-13 11:49:12 +03:00
parent 8050a7e828
commit 8f690af6ef
5 changed files with 37 additions and 15 deletions

View File

@@ -1,5 +1,6 @@
import time
from typing import List
import logging
from sqlalchemy import select
@@ -19,6 +20,10 @@ from services.notify import notify_follower
from services.schema import mutation, query
logging.basicConfig()
logger = logging.getLogger("\t[resolvers.reaction]\t")
logger.setLevel(logging.DEBUG)
@login_required
@mutation.field("follow")
async def follow(_, info, what, slug):
@@ -48,7 +53,7 @@ async def follow(_, info, what, slug):
result = FollowingResult("NEW", "shout", slug)
await FollowingManager.push("shout", result)
except Exception as e:
print(Exception(e))
logger.error(e)
return {"error": str(e)}
return {}