Ensure runtime event notification gets cleared on restart

This commit is contained in:
Nick O'Leary
2016-12-05 14:39:34 +00:00
parent 8d21e441a0
commit c720d78c39
2 changed files with 3 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ function handleStatus(event) {
publish("status/"+event.id,event.status,true);
}
function handleRuntimeEvent(event) {
publish("notification/"+event.id,event,event.hasOwnProperty('text'));
publish("notification/"+event.id,event,true);
}
function init(_server,runtime) {
server = _server;