Skip to content

Commit

Permalink
Merge pull request #456 from aditjind/frontend-cleanup
Browse files Browse the repository at this point in the history
Removing error pop-ups checking for event_id
  • Loading branch information
adityaj1107 authored May 18, 2022
2 parents dd8f9f5 + f058859 commit 8af770e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions dashboards-notifications/public/services/NotificationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,15 +249,7 @@ export default class NotificationService {
const response = await this.httpClient.get(
`${NODE_API.SEND_TEST_MESSAGE}/${configId}`
);
if (response.event_id != null) {
await this.getNotification(response.event_id).then((response) => {
if (!response.success) {
const error = new Error('Failed to send the test message.');
error.stack = JSON.stringify(response.status_list, null, 2);
throw error;
}
});
} else {
if (response.status_list[0].delivery_status.status_code != 200) {
console.error(response);
const error = new Error('Failed to send the test message.');
error.stack = JSON.stringify(response, null, 2);
Expand Down

0 comments on commit 8af770e

Please sign in to comment.