File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ export class AccessibilityScanner {
74
74
}
75
75
76
76
try {
77
- const { data } = await axios . post (
77
+ const { data } = await axios . post < AccessibilityScanResponse > (
78
78
`${ DOMAINS . API_ACCESSIBILITY } /api/website-scanner/v1/scans` ,
79
79
requestBody ,
80
80
{ auth : this . auth } ,
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const auth = Buffer.from(
15
15
export async function retrieveNetworkFailures (
16
16
sessionId : string ,
17
17
) : Promise < string > {
18
- const url = `${ DOMAINS . API_CLOUD } /automate/sessions/${ sessionId } /networklogs` ;
18
+ const url = `${ DOMAINS . API } /automate/sessions/${ sessionId } /networklogs` ;
19
19
20
20
const response = await fetch ( url , {
21
21
method : "GET" ,
@@ -63,7 +63,7 @@ export async function retrieveNetworkFailures(
63
63
export async function retrieveSessionFailures (
64
64
sessionId : string ,
65
65
) : Promise < string > {
66
- const url = `${ DOMAINS . API_CLOUD } /automate/sessions/${ sessionId } /logs` ;
66
+ const url = `${ DOMAINS . API } /automate/sessions/${ sessionId } /logs` ;
67
67
68
68
const response = await fetch ( url , {
69
69
headers : {
@@ -86,7 +86,7 @@ export async function retrieveSessionFailures(
86
86
export async function retrieveConsoleFailures (
87
87
sessionId : string ,
88
88
) : Promise < string > {
89
- const url = `${ DOMAINS . API_CLOUD } /automate/sessions/${ sessionId } /consolelogs` ;
89
+ const url = `${ DOMAINS . API } /automate/sessions/${ sessionId } /consolelogs` ;
90
90
91
91
const response = await fetch ( url , {
92
92
headers : {
You can’t perform that action at this time.
0 commit comments