diff --git a/src/adapter/postgres.py b/src/adapter/postgres.py index 439e403..a107c78 100644 --- a/src/adapter/postgres.py +++ b/src/adapter/postgres.py @@ -474,7 +474,7 @@ class Postgres(DatabaseBase): query = query.filter(created_at__lte=date_to) if has_post: - query = query.filter(post__isnull=False) + query = query.filter(post_id__isnull=False) return ( await query.prefetch_related(