Skip to content

Commit

Permalink
fix: incorrect outside active hours logic
Browse files Browse the repository at this point in the history
Closes #6
  • Loading branch information
JackCuthbert committed Nov 20, 2019
1 parent d3b50e4 commit 722c68c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slack-fm",
"version": "1.3.0",
"version": "1.3.1",
"description": "Sync your Slack status with Last.fm",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function main () {
const currentHour = getHours(currentTime)

const { start, end } = config.activeHours
if (currentHour < start || currentHour > end) {
if (currentHour >= start || currentHour < end) {
log(`Outside active hours (${start}-${end}), skipping`)
await clearSlackStatus()
return
Expand Down

0 comments on commit 722c68c

Please sign in to comment.