Merge pull request #6818 from jumpserver/pr@dev@fix_ticket_bug

fix: 修复工单与koko相关接口bug
pull/6820/head
feng626 3 years ago committed by GitHub
commit 5a993c255d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -61,7 +61,7 @@ class LoginAssetCheckAPI(CreateAPIView):
'check_confirm_status': {'method': 'GET', 'url': confirm_status_url},
'close_confirm': {'method': 'DELETE', 'url': confirm_status_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

@ -77,7 +77,7 @@ class CommandConfirmAPI(CreateAPIView):
'check_confirm_status': {'method': 'GET', 'url': confirm_status_url},
'close_confirm': {'method': 'DELETE', 'url': confirm_status_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

Loading…
Cancel
Save