drafts-orm-struct

This commit is contained in:
2023-01-16 11:32:36 +03:00
committed by bniwredyc
parent 3875ac5d4e
commit 6a8596b764
6 changed files with 88 additions and 43 deletions

View File

@@ -218,10 +218,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")