Skip to content

Commit

Permalink
Merge branch 'master' into task/non_signal_by_api
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelM3 committed Jul 7, 2023
2 parents 05c0ef5 + f3981d2 commit 480d7cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES_NEXT_RELEASE
@@ -1,4 +1,5 @@
- Add: allow access entities using NGSIv2 API for non_signal rules (new setting nonSignalByAPI / PERSEO_CHECK_NON_SIGNAL_BY_API) (#549)
- Remove support for ngsv1 notifications (#714)
- Remove ngsiv1 support for updateAction (#714)
- Fix: check timer string in lower case in TimedRule checker

2 changes: 1 addition & 1 deletion lib/models/rules.js
Expand Up @@ -85,7 +85,7 @@ function isTimedRule(rule) {
// Detect timed rules, taken from perseo-core
// https://github.com/telefonicaid/perseo-core/blob/master/perseo-main/src/main/java/com/telefonica/iot/perseo/TimeRulesStore.java#L110
return (
(rule.text && rule.text.includes('timer:')) ||
(rule.text && rule.text.toLowerCase().includes('timer:')) ||
(rule.text &&
rule.text.toLowerCase().includes('match_recognize') &&
rule.text.toLowerCase().includes('interval'))
Expand Down

0 comments on commit 480d7cd

Please sign in to comment.