autosubscribe when comment created

This commit is contained in:
knst-kotov
2022-06-29 15:22:14 +03:00
parent 3f7d9c527b
commit dc3f7fe6a5
2 changed files with 29 additions and 10 deletions

View File

@@ -331,7 +331,7 @@ async def subscribe(_, info, what, slug):
elif what == "COMMENTS":
comments_subscribe(user, slug)
except Exception as e:
return {"error" : e}
return {"error" : str(e)}
return {}
@@ -350,7 +350,7 @@ async def unsubscribe(_, info, what, slug):
elif what == "COMMENTS":
comments_unsubscribe(user, slug)
except Exception as e:
return {"error" : e}
return {"error" : str(e)}
return {}