mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
Revert "Revert "[#151837054] Add new column free_sms_fragment_limit in the Services table""
This commit is contained in:
@@ -138,6 +138,10 @@ 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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user