Skip to content

Commit 5a2b8e6

Browse files
committed
feat: add return type for security scan result api
1 parent c3fdb80 commit 5a2b8e6

File tree

1 file changed

+2
-1
lines changed
  • src/Shared/Components/Security/SecurityModal

1 file changed

+2
-1
lines changed

src/Shared/Components/Security/SecurityModal/service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { ROUTES } from '@Common/Constants'
22
import { getUrlWithSearchParams } from '@Common/Helper'
33
import { get } from '@Common/Api'
4+
import { ResponseType } from '@Common/Types'
45
import { ScanResultDTO, AppDetailsPayload } from './types'
56

67
export const getSecurityScan = async ({
@@ -9,7 +10,7 @@ export const getSecurityScan = async ({
910
installedAppId,
1011
artifactId,
1112
installedAppVersionHistoryId,
12-
}: AppDetailsPayload) => {
13+
}: AppDetailsPayload): Promise<ResponseType<ScanResultDTO>> => {
1314
const url = getUrlWithSearchParams(ROUTES.SCAN_RESULT, {
1415
appId,
1516
envId,

0 commit comments

Comments
 (0)