my-shout-not-published
All checks were successful
Deploy on push / deploy (push) Successful in 23s

This commit is contained in:
Untone 2024-04-26 11:06:13 +03:00
parent cfed40ddd9
commit ee24f2f1db

View File

@ -31,7 +31,7 @@ async def get_my_shout(_, info, shout_id: int):
session.query(Shout) session.query(Shout)
.filter(Shout.id == shout_id) .filter(Shout.id == shout_id)
.options(joinedload(Shout.authors), joinedload(Shout.topics)) .options(joinedload(Shout.authors), joinedload(Shout.topics))
.filter(and_(Shout.deleted_at.is_(None), Shout.published_at.is_(None))) .filter(Shout.deleted_at.is_(None))
.first() .first()
) )
if not shout: if not shout: