Skip to content

Commit 83e808f

Browse files
authored
Update ReportService.js
1 parent d36d493 commit 83e808f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

browserstack-report-action/src/services/ReportService.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,11 @@ const mockService = require('./MockReportService');
66
class ReportService {
77
constructor(authHeader, isTestMode = false) {
88
this.authHeader = authHeader;
9-
this.apiUrl = 'https://api-observability.browserstack.com/ext/v1/builds/buildReport';
10-
this.isTestMode = isTestMode;
9+
this.apiUrl = 'https://api-observability-preprod.bsstag.com/ext/v1/builds/buildReport';
10+
// this.isTestMode = isTestMode;
1111
}
1212

1313
async fetchReport(params) {
14-
if (this.isTestMode) {
15-
return mockService.getMockResponse();
16-
}
17-
1814
try {
1915
const response = await axios.post(this.apiUrl, params, {
2016
headers: {

0 commit comments

Comments
 (0)