fix delete campaing query
This commit is contained in:
parent
9a4b84552b
commit
edb98740a0
@ -125,7 +125,7 @@ def delete_twitter_campaign():
|
||||
if 'campaign_id' not in request_json:
|
||||
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:
|
||||
return "Capmaign not found!", 404
|
||||
|
Loading…
Reference in New Issue
Block a user