We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55b9650 commit 2517d0fCopy full SHA for 2517d0f
1 file changed
signalk-send-notification.js
@@ -41,14 +41,18 @@ module.exports = function(RED) {
41
if ( typeof source !== 'undefined' && source.length === 0 ) {
42
source = undefined
43
}
44
+
45
+ if ( !path.startsWith('notifications.') ) {
46
+ path = 'notifications.' + path
47
+ }
48
49
let delta = {
50
updates: [
51
{
52
$source: source,
53
values: [
54
- path: 'notifications.' + path,
55
+ path,
56
value: {
57
state: state,
58
method: method,
0 commit comments