Revert "[#151837054] Add new column free_sms_fragment_limit in the Services table"

This commit is contained in:
Venus Bailey
2017-10-16 12:43:05 +01:00
committed by GitHub
parent e32350967e
commit 616a6f8ef8
8 changed files with 17 additions and 135 deletions

View File

@@ -138,10 +138,6 @@ def create_service():
errors = {'user_id': ['Missing data for required field.']}
raise InvalidRequest(errors, status_code=400)
# TODO: to be removed when front-end is updated
if 'free_sms_fragment_limit' not in data:
data['free_sms_fragment_limit'] = current_app.config['FREE_SMS_TIER_FRAGMENT_COUNT']
# validate json with marshmallow
service_schema.load(request.get_json())