Skip to content

Commit

Permalink
fix: invalid duration calculation
Browse files Browse the repository at this point in the history
Side note: tests are good, I should write them
  • Loading branch information
JackCuthbert committed Dec 2, 2019
1 parent f083c4d commit d16f2ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function setSlackStatus (status: string, duration?: number) {
profile: {
status_text: status,
status_emoji: status !== '' ? config.slack.emoji : '',
status_expiration: duration ?? 0
status_expiration: duration !== undefined ? calcExpiration(duration) : 0
}
}

Expand Down

0 comments on commit d16f2ec

Please sign in to comment.