Skip to content

Commit

Permalink
Merge pull request #1390 from Bidaya0/fix/action/4592842052/jobs/8110…
Browse files Browse the repository at this point in the history
…235340

fix: bug in /4592842052/jobs/8110235340
  • Loading branch information
Bidaya0 authored Apr 3, 2023
2 parents d0743f5 + a52fdc6 commit 5f58a2d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions dongtai_web/dast/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,12 @@ class IastVulRelationArgsSerializer(serializers.Serializer):


class IastVulRelationDeleteArgsSerializer(serializers.Serializer):
iastvul_id = serializers.IntegerField(default=20,
help_text=_('iast_vul id'))
dastvul_id = serializers.IntegerField(default=20,
help_text=_('iast_vul id'))
iastvul_id = serializers.IntegerField(min_value=1,
help_text=_('iast_vul id'),
required=True)
dastvul_id = serializers.IntegerField(min_value=1,
help_text=_('dast_vul id'),
required=True)


class DastVulsEndPoint(UserEndPoint, viewsets.ViewSet):
Expand Down
4 changes: 2 additions & 2 deletions dongtai_web/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
from dongtai_web.dast.webhook import DastWebhook
from dongtai_web.dast.page import DastVulsEndPoint
from dongtai_web.dast.manage import DastManageEndPoint
from dongtai_web.views.new_project_query import (NewApiRouteSearch, ProjectVersionList)
from dongtai_web.views.new_project_query import (NewApiRouteSearch, NewProjectVersionList)

urlpatterns = [
path('user/<int:user_id>', UserDetailEndPoint.as_view()),
Expand Down Expand Up @@ -453,7 +453,7 @@
path('api/v2/app_vul_list_content', GetAppVulsList.as_view()),
path('api/v2/app_vul_summary', GetAppVulsSummary.as_view()),
path('api/v2/api_route/search', NewApiRouteSearch.as_view()),
path('api/v2/project_version', ProjectVersionList.as_view()),
path('api/v2/project_version', NewProjectVersionList.as_view()),
])

urlpatterns.extend(scaupload_urls)
Expand Down
2 changes: 1 addition & 1 deletion dongtai_web/views/new_project_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class ApiRouteArgSerializer(serializers.Serializer):
required=False)


class ProjectVersionList(UserEndPoint):
class NewProjectVersionList(UserEndPoint):
name = "api-v1-project-version-delete"
description = _("Delete application version information")

Expand Down

0 comments on commit 5f58a2d

Please sign in to comment.