mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-16 19:30:13 -04:00
Remove keyword args from call to create service
The cache decorator doesn’t work with functions that use keyword arguments (at the moment).
This commit is contained in:
@@ -29,12 +29,12 @@ def _create_service(service_name, organisation_type, email_from, form):
|
||||
free_sms_fragment_limit = current_app.config['DEFAULT_FREE_SMS_FRAGMENT_LIMITS'].get(organisation_type)
|
||||
try:
|
||||
service_id = service_api_client.create_service(
|
||||
service_name=service_name,
|
||||
organisation_type=organisation_type,
|
||||
message_limit=current_app.config['DEFAULT_SERVICE_LIMIT'],
|
||||
restricted=True,
|
||||
user_id=session['user_id'],
|
||||
email_from=email_from,
|
||||
service_name,
|
||||
organisation_type,
|
||||
current_app.config['DEFAULT_SERVICE_LIMIT'],
|
||||
True,
|
||||
session['user_id'],
|
||||
email_from,
|
||||
)
|
||||
session['service_id'] = service_id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user