Skip to content

Commit 3b4754b

Browse files
committed
fix issue with slack webhook
1 parent 4c8f3d6 commit 3b4754b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AutomaticClockOuts/clock_out.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const doClockOut = async (context, timer) => {
2828
context.log(`I am going to clock out ${JSON.stringify(timeEntryAsJson)}`);
2929
timeEntryAsJson.end_date = timeEntry.getTimeToClockOut()
3030
console.log(`I am doing it for you ${JSON.stringify(findUser(users, timeEntry.owner_id))}`)
31-
axios.post('https://hooks.slack.com/services/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',
31+
axios.post(process.env["SLACK_WEBHOOK"],
3232
{"text": `I am doing it for you ${JSON.stringify(findUser(users, timeEntry.owner_id))}`}
3333
)
3434
.then(function (response) {

0 commit comments

Comments
 (0)