This commit is contained in:
@@ -178,7 +178,7 @@ async def get_author_follows(_, _info, slug="", user=None, author_id=0):
|
||||
elif author_id:
|
||||
author_query = author_query.filter(Author.id == author_id)
|
||||
else:
|
||||
raise ValueError("One of slug, user, or author_id must be provided")
|
||||
return {"error": "One of slug, user, or author_id must be provided"}
|
||||
result = local_session().execute(author_query)
|
||||
if result:
|
||||
# logger.debug(result)
|
||||
|
Reference in New Issue
Block a user