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:
Chris Hill-Scott
2016-05-20 15:58:20 +01:00
parent d9dda51062
commit 228abf4526
4 changed files with 7 additions and 7 deletions

View File

@@ -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,