twitter #2
@ -125,7 +125,7 @@ def delete_twitter_campaign():
|
|||||||
if 'campaign_id' not in request_json:
|
if 'campaign_id' not in request_json:
|
||||||
return "Invalid request!", 400
|
return "Invalid request!", 400
|
||||||
|
|
||||||
twitter_campaign = TwitterAccount.query.filter_by(user_id=user_id, id=request_json['campaign_id']).first()
|
twitter_campaign = TwitterCampaign.query.filter_by(user_id=user_id, id=request_json['campaign_id']).first()
|
||||||
|
|
||||||
if not twitter_campaign:
|
if not twitter_campaign:
|
||||||
return "Capmaign not found!", 404
|
return "Capmaign not found!", 404
|
||||||
|
Loading…
Reference in New Issue
Block a user