fix: 修复工单与koko相关接口bug

pull/6818/head
feng626 3 years ago
parent 1dcc8ff0a3
commit ad592fa504

@ -61,7 +61,7 @@ class LoginAssetCheckAPI(CreateAPIView):
'check_confirm_status': {'method': 'GET', 'url': confirm_status_url}, 'check_confirm_status': {'method': 'GET', 'url': confirm_status_url},
'close_confirm': {'method': 'DELETE', 'url': confirm_status_url}, 'close_confirm': {'method': 'DELETE', 'url': confirm_status_url},
'ticket_detail_url': ticket_detail_url, 'ticket_detail_url': ticket_detail_url,
'reviewers': [str(user) for user in ticket.assignees.all()], 'reviewers': [str(user) for user in ticket.current_node.first().ticket_assignees.all()],
} }
return data return data

@ -77,7 +77,7 @@ class CommandConfirmAPI(CreateAPIView):
'check_confirm_status': {'method': 'GET', 'url': confirm_status_url}, 'check_confirm_status': {'method': 'GET', 'url': confirm_status_url},
'close_confirm': {'method': 'DELETE', 'url': confirm_status_url}, 'close_confirm': {'method': 'DELETE', 'url': confirm_status_url},
'ticket_detail_url': ticket_detail_url, 'ticket_detail_url': ticket_detail_url,
'reviewers': [str(user) for user in ticket.assignees.all()] 'reviewers': [str(user) for user in ticket.current_node.first().ticket_assignees.all()]
} }
@lazyproperty @lazyproperty

Loading…
Cancel
Save