Skip to content

Commit

Permalink
♻️ refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohland committed Nov 27, 2023
1 parent 4e01be4 commit ddd122b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "barky",
"version": "1.1.6",
"version": "1.1.7",
"description": "A simple cloud services watchdog with digest notification support & no external dependencies",
"homepage": "https://github.com/Rohland/barky#readme",
"main": "dist/cli.js",
Expand Down
2 changes: 1 addition & 1 deletion src/models/alert_configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,6 @@ export class AlertConfiguration {
if (noDirectlyMatchedRules) {
return this.rules.find(x => !x.match && x.isValidNow(date)) ?? null;
}
return rules.find(x => !x.isNotValidNow) ?? null;
return rules.find(x => x.isValidNow(date)) ?? null;
}
}

0 comments on commit ddd122b

Please sign in to comment.