Skip to content

Commit e79e793

Browse files
committed
Done requests changes
1 parent e591fd3 commit e79e793

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

components/bigdatacorp/actions/get-address-data/get-address-data.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ export default {
3434
},
3535
});
3636

37-
const status = response.Status[this.dataset[0].Message;
37+
const status = response.Status[this.dataset[0].Message];
38+
3839
if (status === "OK") {
39-
$.export("$summary", `Successfully sent the request for the '${this.dataset}' dataset. Status: ${status}`);
40+
$.export("$summary", `Successfully sent the request for the '${this.dataset}' dataset. Status: ${status}`);
4041
} else {
41-
throw new Error(status);
42+
throw new Error(status);
4243
}
4344

4445
return response;

components/bigdatacorp/actions/get-company-data/get-company-data.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ export default {
3434
},
3535
});
3636

37-
const status = response.Status[this.dataset[0].Message;
37+
const status = response.Status[this.dataset[0].Message];
38+
3839
if (status === "OK") {
39-
$.export("$summary", `Successfully sent the request for the '${this.dataset}' dataset. Status: ${status}`);
40+
$.export("$summary", `Successfully sent the request for the '${this.dataset}' dataset. Status: ${status}`);
4041
} else {
41-
throw new Error(status);
42+
throw new Error(status);
4243
}
4344

4445
return response;

components/bigdatacorp/actions/get-person-data/get-person-data.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ export default {
3434
},
3535
});
3636

37-
const status = response.Status[this.dataset[0].Message;
37+
const status = response.Status[this.dataset[0].Message];
38+
3839
if (status === "OK") {
39-
$.export("$summary", `Successfully sent the request for the '${this.dataset}' dataset. Status: ${status}`);
40+
$.export("$summary", `Successfully sent the request for the '${this.dataset}' dataset. Status: ${status}`);
4041
} else {
41-
throw new Error(status);
42+
throw new Error(status);
4243
}
4344

4445
return response;

0 commit comments

Comments
 (0)