diff --git a/ayct_backend/campaign/__init__.py b/ayct_backend/campaign/__init__.py index fc3bc40..4c0e18b 100644 --- a/ayct_backend/campaign/__init__.py +++ b/ayct_backend/campaign/__init__.py @@ -149,7 +149,7 @@ def get_twitter_campaign_details(campaign_id): posts = [] for post in campaign_posts: post_data = {} - post_data['post_id'] = post.post_id + post_data['post_id'] = post.id post_data['campaign_id'] = post.campaign_id post_data['post_content'] = post.post_content post_data['twitter_post_id'] = post.twitter_post_id