mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
Use correct key to set team in DeskPro
For the `POST` ticket endpoint, the parameter is `agent_team_id`: https://manuals.deskpro.com/html/developer-apps/api/api-tickets.html#id2
This commit is contained in:
@@ -11,7 +11,7 @@ def feedback():
|
||||
data = {
|
||||
'person_email': current_app.config.get('DESKPRO_PERSON_EMAIL'),
|
||||
'department_id': current_app.config.get('DESKPRO_DEPT_ID'),
|
||||
'assigned_agent_team_id': current_app.config.get('DESKPRO_ASSIGNED_AGENT_TEAM_ID'),
|
||||
'agent_team_id': current_app.config.get('DESKPRO_ASSIGNED_AGENT_TEAM_ID'),
|
||||
'subject': 'Notify feedback',
|
||||
'message': 'Environment: {}\n\n{}\n{}\n{}'.format(
|
||||
url_for('main.index', _external=True),
|
||||
@@ -35,7 +35,7 @@ def feedback():
|
||||
resp.json())
|
||||
)
|
||||
abort(500, "Feedback submission failed")
|
||||
flash("Thanks, we've received your feedback", 'default_with_tick')
|
||||
flash("Thanks, we’ve received your feedback", 'default_with_tick')
|
||||
return redirect(url_for('.feedback'))
|
||||
|
||||
return render_template('views/feedback.html', form=form)
|
||||
|
||||
@@ -102,7 +102,7 @@ def service_request_to_go_live(service_id):
|
||||
data = {
|
||||
'person_email': current_app.config.get('DESKPRO_PERSON_EMAIL'),
|
||||
'department_id': current_app.config.get('DESKPRO_DEPT_ID'),
|
||||
'assigned_agent_team_id': current_app.config.get('DESKPRO_ASSIGNED_AGENT_TEAM_ID'),
|
||||
'agent_team_id': current_app.config.get('DESKPRO_ASSIGNED_AGENT_TEAM_ID'),
|
||||
'subject': 'Request to go live',
|
||||
'message': "From {} <{}> on behalf of {} ({})\n\nUsage estimate\n---\n\n{}".format(
|
||||
current_user.name,
|
||||
|
||||
Reference in New Issue
Block a user