Skip to content

Commit

Permalink
qa changes
Browse files Browse the repository at this point in the history
  • Loading branch information
willie committed Jan 27, 2020
1 parent 78859c9 commit 0698388
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
},
"homepage": "https://github.com/industrydive/incident_response#readme",
"dependencies": {
"axios": "^0.19.1",
"querystring": "^0.2.0"
"axios": "^0.19.1"
},
"devDependencies": {
"eslint": "^6.5.1",
Expand Down
4 changes: 1 addition & 3 deletions src/handleIncidentForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ function sendIncidentDetailsMessage(payload, channelName, channelID) {
type: 'section',
text: {
type: 'mrkdwn',
// tslint:disable-next-line:max-line-length
text: `*[${channelName}] An Incident has been opened by <@${payload.user.id}>*`,
},
},
Expand Down Expand Up @@ -88,7 +87,6 @@ function sendIncidentDetailsMessage(payload, channelName, channelID) {
fields: [
{
type: 'mrkdwn',
// tslint:disable-next-line:max-line-length
text: `*Incident started*\n<!date^${Math.round(Date.now() / 1000)}^{date_short} at {time_secs}|${Math.round(Date.now() / 1000)}>`,
},
],
Expand Down Expand Up @@ -277,7 +275,7 @@ exports.handleIncidentForm = (req, res) => {
}
return Promise.all(promiseList);
}
return `Creating the incident channel failed: ${body.error}`;
return Promise.reject(body.error);
})
.then((responses) => {
console.log(responses);
Expand Down

0 comments on commit 0698388

Please sign in to comment.