reviewed resolvers

This commit is contained in:
2022-09-22 13:31:44 +03:00
parent c292d7da55
commit 64914028fb
8 changed files with 77 additions and 68 deletions

View File

@@ -75,7 +75,7 @@ async def get_user_collections(_, _info, userslug):
collections = (
session.query(Collection)
.where(
and_(Collection.createdBy == userslug, bool(Collection.publishedAt))
and_(Collection.createdBy == userslug, Collection.publishedAt.is_not(None))
)
.all()
)