drafts-orm-struct

This commit is contained in:
2023-01-16 11:32:36 +03:00
parent 2017be82ee
commit 261b22716b
6 changed files with 88 additions and 43 deletions

View File

@@ -219,10 +219,13 @@ def author_unfollow(user_id, slug):
).first()
)
if not flw:
raise Exception("[resolvers.profile] follower not exist, cant unfollow")
return {
"error": "Follower is not exist, cant unfollow"
}
else:
session.delete(flw)
session.commit()
return {}
@query.field("authorsAll")