wrap-order-fix

This commit is contained in:
2024-01-23 02:28:54 +03:00
parent bb2edd13e9
commit 6c5ce12b7e
2 changed files with 4 additions and 3 deletions

View File

@@ -25,8 +25,9 @@ logging.basicConfig()
logger = logging.getLogger("\t[resolvers.reaction]\t")
logger.setLevel(logging.DEBUG)
@login_required
@mutation.field("follow")
@login_required
async def follow(_, info, what, slug):
try:
user_id = info.context["user_id"]
@@ -61,8 +62,8 @@ async def follow(_, info, what, slug):
return {}
@login_required
@mutation.field("unfollow")
@login_required
async def unfollow(_, info, what, slug):
user_id = info.context["user_id"]
try: